Commit 6f449de9 by BellCodeEditor

save project

parent 612b1086
Showing with 2 additions and 2 deletions
...@@ -5,8 +5,8 @@ import random ...@@ -5,8 +5,8 @@ import random
a=["石头","剪刀","布"] a=["石头","剪刀","布"]
computer=random.choice(a) computer=random.choice(a)
print("计算机出的是:"+computer) print("计算机出的是:"+computer)
if print in t:
if t==computer: if play==computer:
print("平局") print("平局")
elif t=="石头"and computer=="剪刀": elif t=="石头"and computer=="剪刀":
print("哈哈哈哈哈,你赢了!") 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