Commit 1ce41d6c by BellCodeEditor

save project

parent 59eee29f
Showing with 11 additions and 4 deletions
......@@ -2,20 +2,27 @@
import turtle#导入turtle模块
# A=turtle.Pen()#新建画笔
# A.write("你好\n再见",font=("Times",30,"normal"))#写字
# A.hideturtle()#隐藏画笔
# turtle.done()#保持画布
s=turtle.Screen()
s.bgcolor("light blue")
A=turtle.Pen()#新建画笔
A.penup()
A.goto(80,-100)
A.write("你好\n再见",font=("Times",30,"normal"))#写字
A.hideturtle()#隐藏画笔
a=turtle.Pen()
a.pensize(3)
a.pencolor("red")
a.fillcolor("red")
a.begin_fill()
a.right(-45)
a.forward(100)
a.circle(50,180)
a.right(90)
a.circle(50,180)
a.forward(100)
a.end_fill()
a.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