Commit 679208ab by BellCodeEditor

auto save

parent 4e7832b2
Showing with 1 additions and 1 deletions
...@@ -3,7 +3,7 @@ import random ...@@ -3,7 +3,7 @@ import random
a=input("请出拳(石头/剪刀/布)") a=input("请出拳(石头/剪刀/布)")
print("玩家出拳:"+a) print("玩家出拳:"+a)
b=["电脑出拳:石头","电脑出拳:剪刀","电脑出拳:布"] b=["石头","剪刀","布"]
computer=random.choice(b) computer=random.choice(b)
print(computer) print(computer)
if a in b: if a in b:
......
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