Commit 386d8bf6 by BellCodeEditor

save project

parent 393787ea
Showing with 110 additions and 37 deletions
# 利用write()帮助悟空给诺依回信吧~ import.turtle
import turtle pen1=turtle.pen()
screen=turtle.Screen() pen1.pencolor("red")
screen.bgcolor("light blue") pen1.pensize(5)
len=screen.textinput("100","100") pen1.left(45)
len=int(len) pen1.forword(100)
pen=turtle.Pen() pen1.circle(50,80)
pen.write("Hi,诺依~\n用python写电子贺卡真是太有趣啦~\我也喜欢python~\n——悟空",font=("Times",30,"normal")) pen1.forword(100)
pen.hideturtle() pen1.hideturtle()
len=60
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)h
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
turtle.done()
pen=turtle.Pen()
pen.write("Hi,诺依~\n用python写电子贺卡真是太有趣啦~\我也喜欢python~\n——悟空",font=("Times",30,"normal"))
pen.hideturtle()
len=60
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)h
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
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