Commit 5aa9d24d by BellCodeEditor

save project

parent 8d2d52c6
Showing with 5 additions and 4 deletions
......@@ -5,7 +5,7 @@ import random
DJOKOVIC=['石头','剪刀','布']
C=(random.choice(DJOKOVIC))
print("COM"+C)
if player in DJOKOVIC:
if player==C:
print("dogfall")
elif player=='石头' and C=='剪刀':
......@@ -15,5 +15,6 @@ print("COM"+C)
elif player=='剪刀' and C=='布':
print('You win')
else:
print('You lose')
\ No newline at end of file
print('You lose')
else:
print("input error")
\ 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