会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
马wen飞
可能是我与众不同吧!
博客园
首页
新随笔
联系
管理
2020年1月15日
python猜拳小游戏
摘要: 使用if else结构写的一个猜拳小游戏 import random player=input('请输入:剪刀(0)石头(1)布(2):') player=int(player) computer=random.randint(0,2) print("电脑出的是:%d"%computer) if (
阅读全文
posted @ 2020-01-15 09:28 侠客小飞
阅读(323)
评论(0)
推荐(0)