Commit ec5ca8ee by BellCodeEditor

save project

parent 9926c68e
Showing with 28 additions and 0 deletions
from random import *
from random import *
player=str(input())
list1=['剪刀','石头','布']
print('玩家出拳:',player)
computer=choice(list1)
if player=='剪刀':
if computer=='剪刀':
print('impossble!')
elif computer=='石头':
print('computer!')
else:
print('player!')
elif player=='石头':
if computer=='石头':
print('impossble!')
elif computer=='剪刀':
print('player!')
else:
print('computer!')
else:
if computer=='石头':
print('player!')
elif computer='剪刀':
print('computer!')
else:
print('impossble!')
\ 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