Commit 71a248b3 by BellCodeEditor

save project

parent 220fe62b
Showing with 15 additions and 0 deletions
import random
# 玩家出拳
name=input("他喵的快出拳")
print("秀儿出拳:"+name)
e=["石头","剪刀","布"]
e1= random.choice(e)
print("电脑出拳:"+e1 )
if name==e1:
print("平局")
elif (name=="石头" and e1=="剪刀") or (name=="布" and e1=="石头") or (name=="剪刀" and e1=="布"):
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