GitHub 博客园 Nanakon

条件判断

 

age = 3
if age >= 18:
    print('adult')
elif age >= 6:
    print('teenager')
else:
    print('kid')



s = input('birth:')
birth = int(s)
if birth < 2000:
    print('00前')
else:
    print('00后')

posted on 2016-02-19 15:51  jzm17173  阅读(101)  评论(0编辑  收藏  举报

导航

轻音