2017年第一个Python程序
来源:互联网 发布:粉尘防护口罩知乎 编辑:程序博客网 时间:2024/06/10 10:26
"""
this is a small game ,you can test it
"""
counter = 0
luck_number = 29
while counter < 3:
guessnuber = int(input("age:"))
if guessnuber == luck_number:
print("good boy you are the lucky people")
break
elif guessnuber > luck_number:
print("the number is bigger than lucknumber")
else:
print("the number is samller than the luck number")
counter = counter + 1
if counter == 3:
keeping = "Y"
choice = input("Do you want to try again? Please choice Yes or No[Y/N]:")
if choice == keeping:
counter = 0
else:
print("thank you ,game over")
else:
print("thank you")
this is a small game ,you can test it
"""
counter = 0
luck_number = 29
while counter < 3:
guessnuber = int(input("age:"))
if guessnuber == luck_number:
print("good boy you are the lucky people")
break
elif guessnuber > luck_number:
print("the number is bigger than lucknumber")
else:
print("the number is samller than the luck number")
counter = counter + 1
if counter == 3:
keeping = "Y"
choice = input("Do you want to try again? Please choice Yes or No[Y/N]:")
if choice == keeping:
counter = 0
else:
print("thank you ,game over")
else:
print("thank you")
阅读全文
0 0
- 2017年第一个Python程序
- 第一个Python程序
- 第一个Python程序
- 第一个Python程序
- 第一个python 程序
- 第一个Python程序
- 第一个python程序
- 第一个python程序
- 第一个python程序
- 第一个python程序
- 第一个Python程序
- 第一个Python程序
- 第一个Python程序
- 第一个Python程序
- 第一个python程序
- 第一个python程序
- 第一个 Python 程序
- 第一个Python程序
- Android studio 代码混淆及打包apk
- Unity UGUI替换Image图片的三种方式
- F7+vue 物理返回键监听使用
- Android apk反编译
- JVM虚拟机
- 2017年第一个Python程序
- ABP module-zero +AdminLTE+Bootstrap Table+jQuery权限管理系统第十二节--小结,Bootstrap Table之角色管理
- php form表单提交 然后上传图片到七牛
- 扩展localStorage
- 神经网络权重初始化
- Yii中gii自动生成代码
- 神经网络前向后向传播公式推导
- python sklearn PCA库
- cocos2d项目如何关掉多点触摸