用户:
江河之影查看:0 回复:0 评论:0 创建时间:2022-12-13T20:44:02
【作品展示】

【作品介绍】
水作品
【作品源代码】
import random
a=random.randint(1,3)
b=int(input('1=剪刀 2=石头 3=布,请输入1-3中的一个数:'))
c= ''
if (b==1 and a==3) or (b==2 and a==1) or (b==3 and a==2):
c='您赢了'
elif b==a:
c='平局'
else:
c='您输了'
print('我想的是',a,c)
input()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn