Commit 4e983497 by BellCodeEditor

save project

parent 7a339e4b
Showing with 3 additions and 2 deletions
player=input("你要出什么?")
print("玩家出拳:"+player)
import random import random
list=["剪刀","石头","布"] list=["剪刀","石头","布"]
computer=random.choice(list) computer=random.choice(list)
...@@ -10,4 +12,4 @@ if player in list: ...@@ -10,4 +12,4 @@ if player in list:
else: else:
print("很遗憾,你输了") print("很遗憾,你输了")
else: else:
print("语句错误") 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