Commit 1cd19dd6 by BellCodeEditor

save project

parent 960ab4bc
Showing with 11 additions and 6 deletions
import turtle# 利用write()帮助悟空给诺依回信吧~ import turtle# 利用write()帮助悟空给诺依回信吧~
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("blue") len=screen.textinput("问题","你个沙比")
len=int(len)
screen.bgcolor("pink")
pen = turtle.Pen() pen = turtle.Pen()
pen.penup()
pen.goto(200,-100)
pen.write("我是你爸爸",font=("times",30,"normal")) pen.write("我是你爸爸",font=("times",30,"normal"))
pen.hideturtle() pen.hideturtle()
...@@ -9,12 +14,12 @@ pen.hideturtle() ...@@ -9,12 +14,12 @@ pen.hideturtle()
pen1 = turtle.Pen() pen1 = turtle.Pen()
pen1.pensize(45) pen1.pensize(45)
pen1.pencolor("red") pen1.pencolor("red")
pen1.left((45)) pen1.left(45)
pen1.forward(100) pen1.forward(len)
pen1.circle(50,180) pen1.circle(len/2,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(len/2,180)
pen1.forward(100) pen1.forward(len)
pen1.hideturtle() pen1.hideturtle()
turtle.done() turtle.done()
......
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