Commit 45a335c2 by BellCodeEditor

save project

parent 07858a54
Showing with 21 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
len = 50
pen=turtle.Pen()
screen = turtle.Screen()
screen.bgcolor("light blue")
pen.penup()
pen.goto(100,0)
pen.write("哈哈哈\n欢迎您",font=("Times",20,"normal"))
p=turtle.Pen()
p.pensize(4)
p.pencolor("red")
p.left(45)
p.forward(2*len)
p.circle(len,180)
p.right(90)
p.circle(len,180)
p.forward(2*len)
turtle.done()
len=int(screen.textinpot("提示","多大爱心?"))
\ 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