Commit 89260141 by BellCodeEditor

save project

parent 08efb969
Showing with 6 additions and 1099 deletions
player=input("玩家出拳/剪刀/布") import turtle
print("玩家出拳"+player)# pen=turtle.Pen()
import random pen.write("傻逼",font=("Times",12,"normal"))
abc=["剪刀","石头","布"] pen.hideturtle()
ccc=random.choice(abc) turtle.done()
print("电脑出拳"+ccc) \ No newline at end of file
if player==ccc:
print("平局")
elif(player=="剪刀" and ccc=="布") or (player=="石头" and ccc=="剪刀") or (player=="剪刀" and ccc=="石头"):
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