Commit 48d47c8b by BellCodeEditor

auto save

parent c2f1308f
Showing with 27 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen1=turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write("你好诺伊,\nturtle模块真好用,\n谢谢你\n---悟空",font=("Times",20,"normal"))
pen1.hideturtle()
# turtle.done()
# import turtle
pen=turtle.Pen()
pen.hideturtle()
pen.pensize(5)
pen.pencolor("red")
pen.fillcolor("red")
pen.begin_fill()
len=80
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.end_fill()
turtle.done()
\ 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