当前位置:
首页 >
打卡签到python代码_[python] 初学python,打卡签到
发布时间:2023/12/20
38
豆豆
生活随笔
收集整理的这篇文章主要介绍了
打卡签到python代码_[python] 初学python,打卡签到
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
自学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的输出
总结
以上是生活随笔为你收集整理的打卡签到python代码_[python] 初学python,打卡签到的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 基于 Amazon Amplify 构建
- 下一篇: unity 通过 dll 传递字符串给p