Commit 4079e592 by BellCodeEditor

save project

parent 5887ac63
Showing with 11 additions and 20 deletions
import random import turtle
playr=input("请出拳:石/剪/布") pen=turtle.Pen()
x=1
asdw=["石","剪","布"] for i in range(100000000):
pen.forward(x)
asdw1=random.choice(asdw) pen.right(91)
x+=1
if playr in asdw: pen.hideturtle()
print("玩家出拳"+playr) turtle.done
print(asdw1) \ No newline at end of file
if (playr=="石"and asdw1=="剪") or( playr=="剪"and asdw1=="布") or( playr== "布" and asdw1=="石"):
print("555你赢了")
elif playr==asdw1:
print("平局")
else:
print("hhh你输了")
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