Commit dde16eef by BellCodeEditor

save project

parent c0b5d117
Showing with 13 additions and 0 deletions
import random
x=input("请出拳(石头/剪刀/布):")
print("玩家出拳:"+x)
list=["石头","剪刀","布"]
y=random.choice(list)
print("机器人出拳:"+y)
if x==y:
print("平局")
elif (x=="石头" and y=="剪刀") or (x=="剪刀" and y=="布") or (x=="布" and y=="石头"):
print("玩家胜")
else :
rint("机器人胜")
\ 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