标签:lse pre bigger col code core print ase color
猜年龄
age_of_principal = 56 #基础 guess_age=int(input(">>:")) if guess_age == age_of_principal: print("Yes,you get it..") else: print("No,it‘s wrong") age_of_principal = 56 #进阶 guess_age=int(input(">>:")) if guess_age == age_of_principal: print("Yes,you get it..") elif guess_age > age_of_principal: print("You should try smaller") else: print("try bigger")
分数评级
score = int(input("please input you score<<:")) if score > 90: print("A") elif score > 80: print("B") elif score > 70: print("C") elif score > 60: print("D") else: print("You are not fit to study")
标签:lse pre bigger col code core print ase color
原文地址:https://www.cnblogs.com/yhrfighting123/p/10137033.html