Commit f9397b6b by BellCodeEditor

save project

parent 025ccb3e
Showing with 7 additions and 2 deletions
r=input("你出啥")
print("我出"+r)# 玩家出拳
import random
player=input("石头剪刀布")
list=["石头","剪刀","布"]
choice=random.choice(list)
print(choice)
if player==computer:
print("平局")
elif (player=="石头"and computer=="剪刀")or(piayer=="剪刀"and computer=="布")or(piayer=="布"and computer=="石头"):
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