最近一直在简单学习python。因为自己的编程基础不是很好,所以也是在慢慢的学习。
希望自己可以越学越好。
希望自己加油!
也没有什么随笔需要写,就抄写一份python的简单代码吧~
age_of_david = 31 count = 0 while count < 3: guess_age = int (input("guess david.z‘s age:")) if age_of_david == guess_age: print ("You are good!") break elif age_of_david > guess_age: print ("Think Big!!") else: print ("Think Small!!") count +=1 if count == 3: coutine_confirm = input("do you want to keep guessing..?) if coutine_confirm != ‘n‘: count = 0 else: print ("you have tried too many times..fuck off")