标签:got 分支 语句 master if语句 har bsp you 年龄
用if来实现猜年龄
age_of_master=66
guess_age=input(">>:")
if age_of_master==int(guess_age):
print("yes,you are right") #print钱tab缩进
else:
print("no,you must kidding me ")
多分支if语句:
score=input("you score:")
if score>90:
print("you got an A")
elif score>80:
print("you got an B")
elif score>60:
print("you got an C")
else score<60:
print("you should try harder!")
标签:got 分支 语句 master if语句 har bsp you 年龄
原文地址:http://www.cnblogs.com/minkillmax/p/7821202.html