Commit 5f9aba01 by BellCodeEditor

save project

parent 23dfff73
Showing with 17 additions and 0 deletions
import random
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
printlist=["1","2","3"]
robot=random.choice(list)
print("robot:"+robot)
if player==robot:
print("平局")
elif player=="石头"and robot=="2":
print("win")
elif player=="剪刀"and robot=="3":
print("win")
elif player=="布"and robot=="1":
print("win")
else:
print("lose")
\ 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