Commit e2b26d9e by BellCodeEditor

save project

parent 50915764
Showing with 3 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light yellow") screen.bgcolor("light green")
l=int(screen.textinput("提示","你要多大的爱心"))
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(0,0) pen.goto(0,0)
...@@ -13,7 +14,7 @@ pen.goto(100,100) ...@@ -13,7 +14,7 @@ pen.goto(100,100)
pen.pendown() pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("red")
l=30 #l=30
pen.left(45) pen.left(45)
pen.forward(2*l) pen.forward(2*l)
pen.circle(l,180) pen.circle(l,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