Commit a655cebe by BellCodeEditor

save project

parent de3b5e56
Showing with 8 additions and 3 deletions
# 玩家出拳 # 玩家出拳
miyifan=input('出啥') miyifan=input('出啥')
print('玩家出'+miyifan) print('玩家出'+miyifan)
if mi
import random import random
ppp=random.choice(['石头','剪刀','布']) ppp=random.choice(['石头','剪刀','布'])
print('机器出'+ppp) print('机器出'+ppp)
if miyifan=ppp:
if miyifan=ppp:
print('打平了') print('打平了')
elif (miyifan='石头' and ppp='剪刀') or (miyifan='剪刀' and ppp='布') or (miyifan='布' and ppp='石头'): elif (miyifan='石头' and ppp='剪刀') or (miyifan='剪刀' and ppp='布') or (miyifan='布' and ppp='石头'):
print('你赢了') print('你赢了')
else : else:
print('你输了') print('你输了')
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