Commit 5488cc3a by BellCodeEditor

save project

parent 85878f21
Showing with 11 additions and 2 deletions
......@@ -2,4 +2,13 @@
play=input("石头/剪刀/布")
print("玩家"
import random
list=["石头","剪刀","布"]
\ No newline at end of file
list=["石头","剪刀","布"]
computer=random.choice(list)
print(computer)
if play in list:
if play==computer:
elif():
else:
print("你输了")
else:
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