计算奇偶性

a1 = 89%2
print(a1)
if a1 == 0:
    print("偶数")
if a1 == 1:
    print("奇数")

 

posted @ 2020-04-24 19:43  修心侠客  阅读(155)  评论(0编辑  收藏  举报