Commit e06ab51c by BellCodeEditor

save project

parent a1e41501
Showing with 12 additions and 2 deletions
......@@ -4,4 +4,14 @@ player=input("你出啥???????(石头/剪刀/布)")
print("你出:"+player)
list=["石头","剪刀","布"]
comp=random.choice(list)
print("电脑出:"+comp)
\ No newline at end of file
print("电脑出:"+comp)
if comp==player:
print("平局")
elif comp=="石头" and player=="布":
print("win")
elif comp=="布" and player=="剪刀":
print("win")
elif comp=="剪刀" and player=="石头":
print("win")
else:
print("lose")
\ No newline at end of file
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