Commit 43d46693 by BellCodeEditor

auto save

parent ae8abed2
Showing with 14 additions and 0 deletions
import random
while True:
list=["剪刀","石头","布"]
y=random.choice(list)
s=input("石头/剪刀/布")
print(y)
if (s=="石头" and y=="布")or (s=="剪刀" and y=="石头") or (s=="布" and y=="剪刀") :
print("你输了")
elif y==s:
print("平局了")
else:
print('用户赢了')
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