Commit 963f2b07 by BellCodeEditor

auto save

parent a15989ca
Showing with 32 additions and 0 deletions
#导入模块,创建画笔
import turtle
abc=turtle.Screen()
pen=turtle.Pen()
#画笔颜色,粗细
pen.pencolor("blue")
abc.bgcolor("pink")
pen.pensize(10)
#填充颜色
pen.fillcolor("red")
pen.begin_fill()
#绘画
#pen.penup()
#pen.goto(0,0)
#pen.pendown()
pen.left(135)
pen.forward(100)
pen.circle(-50,180)
pen.left(90)
pen.circle(-50,180)
pen.forward(100)
#结束填充、隐藏画笔、保存画布
pen.end_fill()
pen.hideturtle()
pen1=turtle.Pen()
#写字
pen1.penup()
pen1.goto(-100,-100)
pen1.write("玛酷机器人编程\n胶州中心",font=("Times",30,"normal"))
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