Commit a4760926 by BellCodeEditor

save project

parent c52e3914
Showing with 32 additions and 0 deletions
import turtle #导入海龟模块
pen=turtle.Pen() #创建一支画笔
pen.goto(0,0) #初始化画笔位置
pen.fillcolor("black") #设置填充颜色为黑色
pen.begin_fill() #开始填充
pen.circle(100,-180) #画一个半径为100的半圆圆形
pen.circle(50,-180) #半径为50的半圆
pen.circle(-50,-180) #半径为50的反半圆
pen.end_fill() #结束填充
pen.circle(-100,-180) #画一个半径为100反向的半圆
pen.up() #抬笔
pen.goto(0,25) #
pen.down()
pen.begin_fill()
pen.circle(25)
pen.end_fill()
pen.up()
pen.goto(0,125)
pen.fillcolor("white")
pen.down()
pen.begin_fill()
pen.circle(25)
pen.end_fill()
pen.hideturtle()
turtle.done()
\ No newline at end of file
import tkinter
root=tkinter.Tk()
root.title('LOL')
root.geometry('400x320+500+300')
root.mainloop()
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