python-day6---流程控制

# if 条件:
# 子代码1
# 子代码2
# 子代码3

# if True:
# print('ok')
# print('=====?>')
# print('=====?>')
# print('=====?>')
# print('=====?>')
# print('=====?>')

# age=int(input('您芳龄几何>>: '))
# sex=input('您的性别是>>: ')
#
# if sex == 'female' or age > 50:
# print('alex很中意你,我们结婚吧')
# else:
# print('不是我的菜')



# OLDBOY_AGE=56
# age=input('猜一猜年龄>>: ')
# age=int(age)
#
# if age > OLDBOY_AGE:
# print('太大了')
# elif age < OLDBOY_AGE:
# print('太小了')
# else:
# print('猜对了')





'''
90及以上 : A
80分以上90以下 : B
70分以上80以下 : C
60分以上70以下 : D
60以下 : E
'''
# score=input('>>: ')
# score=int(score)
#
# if score >= 90:
# print('A')
# elif score >=80 and score <90:
# print('B')
# elif score >=70 and score <80:
# print('C')
# elif score >=60 and score < 70:
# print('D')
# else:
# print('E')


# score=input('>>: ')
# score=int(score)
#
# if score >= 90:
# print('A')
# elif score >=80:
# print('B')
# elif score >=70:
# print('C')
# elif score >=60:
# print('D')
# else:
# print('E')
#
# print('====>')
原文地址:https://www.cnblogs.com/liuwei0824/p/7200713.html