Commit 8f8e1c65 by BellCodeEditor

save project

parent 23dfff73
Showing with 13 additions and 0 deletions
# 玩家出拳
import random
a=input('你想出什么')
b=('玩家出'+a)
print(b)
lis1=['拳头','布','剪刀']
computer=random.choice(lis1)
print(computer)
if a==computer :
print('平局')
elif a=='布'and computer=='拳头' or a=='剪刀'and computer=='布' or a=='拳头'and computer=='剪刀'
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