- 博客(1)
- 收藏
- 关注
原创 [python]猜拳小游戏
[python]猜拳小游戏知识点:1、循环体2、try,except3、if,elif,else4、random()import randomprint ("开始猜拳游戏!")print("你可以输入 0 退出游戏。")while True: try: b=int(input("石头:1,剪刀:2,布:3,请输入数字:")) c = [1, 2, 3] if b == 0: break el
2020-10-22 13:40:56
112
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人