哆啦A梦
from tkinter import *root = Tk()
root.title('Hello,哆啦A梦!')
w = Canvas(root,width=600,height=800,background='black')
w.pack()
#大头
w.create_oval(100,400,500,0,fill='blue')
#小头
w.create_oval(150,400,450,100,fill='white')
#眼睛
w.create_oval(225,150,300,50,fill='white')
w.create_oval(300,150,375,50,fill='white')
#眼珠
w.create_oval(260,140,280,120,fill='black')
w.create_oval(320,140,340,120,fill='black')
#鼻子
w.create_oval(280,170,320,130,fill='red')
w.create_oval(300,150,310,140,fill='white',outline="")
#嘴巴
w.create_line(300,170,300,350)
w.create_arc(200,350,400,150,style=ARC,extent=120,start=210)
#右胡子
w.create_line(330,200,400,180)
w.create_line(330,230,400,230)
w.create_line(330,260,400,280)
#左胡子
w.create_line(270,200,200,180)
w.create_line(270,230,200,230)
w.create_line(270,260,200,280)
#脖子
neck = w.create_line(150,390,450,390,width=30,fill='pink',capstyle=ROUND)
#身体
body = w.create_rectangle(160,700,440,400,fill='blue',outline="")
w.lower(body)
#肚兜
w.create_oval(200,590,400,390,fill='white')
w.create_arc(220,580,380,420,extent=180,start=180)
#左手臂
arm1 = w.create_line(50,500,220,400,fill='blue',width=60)
w.create_oval(25,530,80,470,fill='white')
w.lower(arm1)
#右手臂
arm2 = w.create_line(550,500,380,400,fill='blue',width=60)
w.create_oval(525,530,580,470,fill='white')
w.lower(arm2)
w.lift(neck)
#铃铛
lingdang = w.create_oval(250,490,350,390,fill='yellow')
w.create_line(260,410,340,410)
w.create_line(255,420,345,420)
w.create_oval(290,450,310,430,fill='black')
w.create_line(300,450,300,490)
#脚丫
oval = w.create_oval(270,700,330,640,fill='white')
foot1= w.create_line(140,690,270,690,fill='white',width=50,capstyle=ROUND)
foot2= w.create_line(330,690,460,690,fill='white',width=50,capstyle=ROUND)
mainloop()
python的发web可还行 嘶
虽然这个板块是开放的
但是你这个在干哈子呢
@不二如是 Are you Insantl*y? 好,可以,很有精神
页:
[1]