# 西元、民國換算器
print('西元、民國年分換算器\ncurryrice @2021/01/08\n')
year = int(input('請輸入你的西元年生日年份: '))
# 以下為擴充內容
if year < 1911:
print('你的民國生日年份是 民國前', 1911-year, '年')
else:
# 以上為擴充內容
print('你的民國生日年份是 民國', year-1911, '年')
Add a code snippet to your website: www.paste.org