Commit e06ab51c by BellCodeEditor

save project

parent a1e41501
Showing with 11 additions and 0 deletions
......@@ -5,3 +5,13 @@ print("你出:"+player)
list=["石头","剪刀","布"]
comp=random.choice(list)
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