Commit f8984436 by BellCodeEditor

save project

parent 349f7d4d
Showing with 8 additions and 3 deletions
......@@ -2,5 +2,11 @@ import random
p=input("出拳")
print("玩家出"+p)
l=["石头","剪刀","布"]
computer=random.choice(l)
print(computer)
\ No newline at end of file
c=random.choice(l)
print(c)
if p==c:
print("平局")
elif p=="剪刀" and c=="布"or p=="石头" and c=="剪刀" or p=="布" and c=="石头":
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