标签:class 语句 highlight 升级 if语句 == input pre core
猜年龄升级版
age_of_princal = 56 guess_age = int( input("请输入您猜测的年龄") ) if guess_age == age_of_princal: print("恭喜你,猜对啦!") elif guess_age > age_of_princal: print("猜大啦!") else: print("猜小啦")
elif升级版
score = int(input("score:")) if score > 90: print("A") elif score>80: print("B") elif score>70: print("C") elif score>50: print("D") else: print("gun")
标签:class 语句 highlight 升级 if语句 == input pre core
原文地址:http://www.cnblogs.com/darkalex001/p/7486193.html