Commit 7fa62dc7 by BellCodeEditor

save project

parent b6037980
Showing with 10 additions and 5 deletions
...@@ -2,14 +2,19 @@ ...@@ -2,14 +2,19 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
len=screen.textinput("100","100")
len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.write("你好\n赵轶扬.",font=("Times",30,"normal"))
pen.goto(100,-100)
pen.write('你好,诺依')
pen.hideturtle() pen.hideturtle()
len=60
pen.pencolor("red") pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red")
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(2*len)
pen.circle(len,180) pen.circle(len,180)
......
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