Commit f3626c72 by BellCodeEditor

save project

parent 59b5bbfb
Showing with 24 additions and 16 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle#导入turtle模块
pen=turtle.Pen() screen=turtle.Screen()#设置屏幕
#pen.write("你好,\n诺依.",font=("Times",35,"normal")) screen.bgcolor("black")#
pen1=turtle.Pen() pen=turtle.Pen()#
pen1.pensize(5) pen.pencolor("yellow")#
pen1.pencolor("red") pen.penup()#
pen1.left(45) pen.goto(100,-100)#
pen1.forward(100) pen.write("你好,\n诺依.",font=("Times",20,"normal"))#
pen1.circle(45,180) pen.hideturtle()#
pen1.right(95) pen1=turtle.Pen()#
pen1.circle(45,180) pen1.pensize(5)#
pen1.forward(100) pen1.pencolor("red")#
pen.hideturtle() pen1.fillcolor("red")#
pen1.hideturtle() pen1.left(45)#
turtle.done() pen1.begin_fill()#
\ No newline at end of file pen1.forward(100)#
pen1.circle(45,180)#
pen1.right(95)#
pen1.circle(45,180)#
pen1.forward(100)#
pen1.end_fill()#
pen1.hideturtle()#
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