Commit 2239d54a by BellCodeEditor

auto save

parent b2da27c8
Showing with 15 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("blue")
len=int(screen.textinput("爱心大小","请输入爱心的大小"))
pen.write("你好\n我是玛酷冰冰老师\n你们开心,哈哈",font=("Times",30,"normal"))
turtle.done()
\ No newline at end of file
pen.penup()
pen.goto(-100,0)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
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