Commit 19b2efc6 by BellCodeEditor

save project

parent 1fb5b6de
Showing with 5 additions and 13 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳 city = ['1','2','3','4','5','6']
print("玩家出拳:"+player) raise1=input('你想去那?')
import random if raise1 in city:
list=["石头","剪刀","布"] print('坐飞机去'+raise1)
computer=random.choice(list)
print(computer)
if player==computer:
print("平局")
elif (player=="石头" and computer=="剪刀")or(player=="剪刀" and computer=="布")or(player
print("恭喜,你赢了")
else: else:
print("很遗憾,你输了") print('没有'+raise1'这个地方')
\ 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