2017.12.23 初识python

age_of_princal = 50
guass_age = int( input("<<") )
if guass_age == age_of_princal :
print("yes")
elif guass_age > age_of_princal:
print("try smaller")
else :
print("try bigger")

 


score = int( input("yuor score:") )
if score > 90:
print("A")
elif score > 80:
print("B")
elif score > 70:
print("C")
elif score > 60:
print("D")
else:
print("滚")

 

 

1+2
2-1
1*2
5/2
5//2
5%2
2**10
((2+3)*2+2)/2

 

posted on 2017-12-23 15:28  无双·影  阅读(66)  评论(0)    收藏  举报