NullMoneyException
java.life.NullMoneyException

自学python第一周,学了变量和简单的条件判断。

附上猜数游戏代码

 1 #Author:shijt
 2 trueAge=40
 3 count=0
 4 while count<3:
 5     guessAge=int(input("how old is he?"))
 6     if guessAge==trueAge:
 7         print("yes,great!")
 8         break
 9     elif guessAge>trueAge:
10         print("too big")
11     else:
12         print("too small")
13 
14     count+=1
15     if count==3:
16         flag=input("do you want to countine?")
17         if flag!='n':
18             count=0

以后可以在简历上写上:

精通python。。。。。。。hello,world的输出

 

posted on 2017-09-03 18:26  NullMoneyException  阅读(815)  评论(0编辑  收藏  举报