python初学者

最近一直在简单学习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")

猜你喜欢

转载自blog.51cto.com/3180829/2681048