Commit 1d8eea51 by BellCodeEditor

save project

parent 60bb2e65
Showing with 6 additions and 0 deletions
...@@ -4,3 +4,8 @@ import random ...@@ -4,3 +4,8 @@ import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
competr=random.choice(list) competr=random.choice(list)
print(competr) print(competr)
if player ==competr:
print("平局")
elif(player=="石头"and competr=="剪刀")
elif(player=="剪刀"and competr=="布"):
print("玩家赢")
\ 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