a=0 a=input('')
if a%2==0: if a%2==0:
print('a') print('a')
else: else:
print('b') print('b')
最后输出a 输入0,最后输入b
为啥子?
输入的0是str类型,赋值的0是int类型