Commit 48c8dca9 by BellCodeEditor

save project

parent c0b5d117
Showing with 24 additions and 2 deletions
import turtle
len=60
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(-20,70)
pen.write("hyt",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
pen1.pendown()
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
...@@ -7,4 +7,4 @@ elif player=="剪刀"and computer=="布": ...@@ -7,4 +7,4 @@ elif player=="剪刀"and computer=="布":
elif player==""and computer=="石头": elif player==""and computer=="石头":
print("恭喜你,你赢了") print("恭喜你,你赢了")
else: else:
print("很遗憾,你输了") print("很遗憾,你输了")
\ No newline at end of file \ 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