Commit 6c948164 by BellCodeEditor

save project

parent 220fe62b
Showing with 125 additions and 0 deletions
import random
A=input("请出拳(石头/✂ /布):")
print("玩家出拳:"+A)
list=["石头","✂ ","布"]
B=random.choice(list)
print("电脑出拳:"+B)
if A==B:
print("平局")
elif (A=="石头" and B=="✂ ")or(A=="✂ " and B=="布")or(A=="布" and B=="石头"):
print("你赢了")
else:
print("我赢了")
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