码迷,mamicode.com
首页 > 编程语言 > 详细

python初学者

时间:2018-01-09 14:45:33      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:==   代码   自己   python初学者   style   think   加油   int   学习   

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

 

python初学者

标签:==   代码   自己   python初学者   style   think   加油   int   学习   

原文地址:https://www.cnblogs.com/davidz/p/8250980.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!