帮助,我的程序是说你出生的年份,然后告诉你你多大了,但我得到:TypeError: 不支持的操作数类型 -: 'int' 和 'str'如果有人告诉我为什么或者我发送的代码做得很好,我将非常感激,谢谢。import datetimeyear = int(input("in what year were you born? ---> "))yearac = datetime.date.today().strftime("%Y")print(year)print(yearac)difere = year - yearacprint("You have",(difere),"years")
添加回答
举报
0/150
提交
取消