Commit c630d170 by BellCodeEditor

save project

parent 51d5627b
Showing with 17 additions and 14 deletions
a=input() d=['石头','剪刀','布']
print(a)
import random if (a in d):
b=['石头','剪刀','布'] a=input()
x=random.choice(b) print(a)
print(x) import random
if a==x: b=['石头','剪刀','布']
print('平局') x=random.choice(b)
elif (a=='石头' and x=='剪刀') or (a=='剪刀' and x=='布') or (a=='石头' and x=='剪刀'): print(x)
print('玩家赢') if a==x:
else: print('平局')
print('输') elif (a=='石头' and x=='剪刀') or (a=='剪刀' and x=='布') or (a=='石头' and x=='剪刀'):
print('玩家赢')
\ No newline at end of file else:
print('输')
print('sjdfh')
\ 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