Commit 5aa9d24d by BellCodeEditor

save project

parent 8d2d52c6
Showing with 4 additions and 3 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=='剪刀':
......@@ -16,4 +16,5 @@ print("COM"+C)
print('You win')
else:
print('You lose')
\ No newline at end of file
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