Commit b2d89fe4 by BellCodeEditor

save project

parent d5e9fdb4
Showing with 6 additions and 17 deletions
import turtle
import random pen=turtle.Pen()
aa=input("你TMD到底出不出拳?(剪刀/石头/布)") pen.write("pig\npig\nyou are pig",font=("Times",100,"nornal")
print('玩家:'+aa) pen.hideturtle()
lest=['石头','剪刀','布'] turtle.done()
latter=random.choice(lest) \ No newline at end of file
print('电脑:'+latter)
if aa in lest:
if aa==latter:
print("平局")
elif (aa=="剪刀" and latter=="布") or (aa=="布" and latter=="石头") or (aa=="石头" and latter=="剪刀"):
print("你赢了")
else:
print("你输了")
else:
print("沙雕")
\ 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