Commit 5b51efdc by BellCodeEditor

auto save

parent 39561441
Showing with 19 additions and 8 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
huatu=turtle.Pen() screen=turtle.Screen()
screen.bgcolor("light green")
huatu.write("我最喜欢用turtle\n画图了,\npython是世界上\n最好的编程语言",font=("黑体",24,"normal")) p=turtle.Pen()
p.penup()
turtle.done() p.goto(100,-100)
p.write("我最喜欢用turtle\n画图了,\npython是世界上\n最好的编程语言",font=("黑体",20,"normal"))
p1=turtle.Pen()
p1.fillcolor("red")
p1.begin_fill()
p1.hideturtle()
p1.left(45)
p1.forward(100)
p1.circle(50,180)
p1.right(90)
p1.circle(50,180)
p1.forward(100)
p1.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