位置:首頁(yè) > 軟件操作教程 > 編程開(kāi)發(fā) > Python > 問(wèn)題詳情

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")

image.png

參數(shù)的意義

1.給出所有頂點(diǎn)的坐標(biāo)

繼續(xù)查找其他問(wèn)題的答案?

相關(guān)視頻回答
回復(fù)(0)
返回頂部