Commit 7d230c56 by BellCodeEditor

save project

parent a50ceeec
Showing with 28 additions and 0 deletions
import turtle
pen1=turtle.Pen()
screen=turtle.Screen()
len=int(screen.textinput("提示","请输入半径"))
screen.bgcolor("blue")
pen1.penup()
pen1.goto(100,-100)
pen1.write("诺伊,\nturtle真好用,\n我会在画布上写字啦!",font=("Times",30,"normal"))
pen1.hideturtle()
pen=turtle.Pen()
pen.pensize(5)
len=60
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()
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
pen.write("你好\",font=("Times",30,"normal"))
pen.hideturtle()
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