#哆啦A梦
from tkinter import *
import math
root=Tk()
w=Canvas(root,width=1000,height=1000,background="white")
w.pack()
#头
Light_blue ="#%02x%02x%02x" % (0, 159, 232) #定义RGB
w.create_oval(400,400,600,600,fill=Light_blue)
w.create_oval(430,440,570,600,fill="white")
#手
w.create_arc(550,550,745,745,width=1,start=135,extent=20,style="pieslice",outline='black',fill=Light_blue)
w.create_oval(620,615,653,653,fill="white")
w.create_arc(250,535,440,745,width=1,start=15,extent=20,style="pieslice",outline='black',fill=Light_blue)
w.create_oval(345,615,375,653,fill="white")
#眼睛,500,480,fill="white")
w.create_oval(500,430,540,480,fill="white")
w.create_oval(460,430,500,480,fill="white")
#眼珠
w.create_oval(502,448,513,460,fill="black")
w.create_oval(487,448,498,460,fill="black")
w.create_oval(492,450,496,457,fill="white")
w.create_oval(504,450,508,457,fill="white")
#鼻子
w.create_oval(494,469,506,481,fill="red")
#脸部划线
w.create_line(500,481,500,545,fill="black") #中线
w.create_line(510,510,550,510,fill="black")
w.create_line(490,510,450,510,fill="black")
#右边脸
w.create_line(510,500,550,480,fill="black")
w.create_line(510,520,550,540,fill="black")
#左边脸
w.create_line(490,500,450,480,fill="black")
w.create_line(490,520,450,540,fill="black")
#画嘴
w.create_arc(600,545,400,300,width=1,style="arc",start=250,extent=40)
#身体
w.create_rectangle(420,570,580,720,fill=Light_blue)
w.create_oval(435,570,565,700,fill="white")
w.create_arc(455,680,545,605,start=180,extent=180,fill="white")
#脖子上的带子
w.create_line(420,570,580,570,width=10,fill="red",joinstyle=MITER,capstyle=ROUND)
#铃铛
w.create_oval(490,565,510,585,fill="yellow")
w.create_line(490,572,510,572,fill="black")
w.create_line(490,576,510,576,fill="black")
w.create_line(500,580,500,585,fill="black")
#腿
w.create_arc(490,709,510,735,start=-180,extent=-180,fill="white",outline="white")
w.create_oval(410,700,490,735,fill="white")
w.create_oval(510,700,590,735,fill="white")
mainloop()
#横着是Y,(纵向,X,Y,X)