Commit 0d8a7d81 by BellCodeEditor

save project

parent f3469aee
Showing with 8 additions and 8 deletions
......@@ -5,18 +5,18 @@ import random as rd
list=("石头","剪刀","布")
ch=rd.choice(list)
#print(cp_chioce)
if c==ch:
if c in list:
if c==ch:
print ("平局")
elif c=='石头' and ch=='剪刀':
elif c=='石头' and ch=='剪刀':
print('win')
elif c=='石头' and ch=='布':
elif c=='石头' and ch=='布':
print('lose')
elif c=='布' and ch=='石头':
elif c=='布' and ch=='石头':
print('win')
elif c=='布' and ch=='剪刀':
elif c=='布' and ch=='剪刀':
print('lose')
elif c=='剪刀' and ch=='石头':
elif c=='剪刀' and ch=='石头':
print('win')
print('win')
elif:
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