Python繪制多邊形
提問(wèn)人:楊紫紅發(fā)布時(shí)間:2020-11-19
import tkinter
tk=tkinter.Tk()
canvas = tkinter.Canvas(tk,width=500,height=500)
canvas.pack()
canvas.create_polygon(1,1,100,10,100,110,fill="",outline="black")
canvas.create_polygon(200, 10, 240, 30, 120, 100, 140, 120, fill="",outline="black")
參數(shù)的意義
1.給出所有頂點(diǎn)的坐標(biāo)
繼續(xù)查找其他問(wèn)題的答案?
相關(guān)視頻回答
點(diǎn)擊加載更多評(píng)論>>