Commit 4afb0246 by BellCodeEditor

save project

parent 220fe62b
Showing with 15 additions and 0 deletions
chu=input("出拳,1=剪刀,2=石头,3=布")# 玩家出拳
print("玩家出拳:"+chu)
import random
list=["1","2","3"]
lll=[0,"剪刀","石头","布"]
dianren=random.choice(list)
print("电脑出拳:"+dianren)
if chu==dianren:
print("平局")
elif (dianren=="1" and chu=="2")or(dianren=="2" and chu=="3")or(dianren=="3" and chu=="1"):
print("赢")
else:
print("输")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment