最近一直在简单学习python。因为自己的编程基础不是很好,所以也是在慢慢的学习。
希望自己可以越学越好。
希望自己加油!
也没有什么随笔需要写,就抄写一份python的简单代码吧~
age_of_david = 31count = 0while count < 3: guess_age = int (input("guess david.z's age:"))if age_of_david == guess_age:print ("You are good!")breakelif age_of_david > guess_age:print ("Think Big!!")else:print ("Think Small!!") count +=1if count == 3: coutine_confirm = input("do you want to keep guessing..?)if coutine_confirm != 'n': count = 0else:print ("you have tried too many times..fuck off")
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did162430