Commit b549b888 by BellCodeEditor

save project

parent 1da85820
Showing with 4 additions and 3 deletions
import turtle import turtle
len=60 #len=60
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("pink") screen.bgcolor("pink")
a=screen.textinput("提示","爱心大小")
len=int(a)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("ddedgwed\n你好,",font=("Times",50,"normal")) pen.write("ddedgwed\n你好,",font=("Times",50,"normal"))
pen.hideturtle() pen.hideturtle()
...@@ -18,4 +20,4 @@ pen1.right(90) ...@@ -18,4 +20,4 @@ pen1.right(90)
pen1.circle(len,180) pen1.circle(len,180)
pen1.forward(2*len) pen1.forward(2*len)
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
\ 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