- 博客(2)
- 收藏
- 关注
原创 python 完成石头剪刀布游戏
人机对战版一方手动输入,一方产生随机数,连续获胜三次退出程序import random# 获胜局数 初始值 赋值为0n =0while n<3 : player = int(input("player请出拳 1、石头2、剪刀3、布:")) computer = random.randint(1, 3) if((player == 1 and compu...
2019-04-28 13:17:57
408
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人