Commit 77354185 by BellCodeEditor

save project

parent 2e761ef7
Showing with 9 additions and 1 deletions
......@@ -2,4 +2,12 @@ import random
a = input("请出拳:")
print(a)
list = ["剪刀","石头","布"]
random.choice(list)
computer = random.choice(list)
print(computer)
if a == computer:
print("平局")
elif:a == "石头" and computer == "剪刀" or a =="剪刀" and computer == "布" or a =="布" and computer == "石头":
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