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

Python繪制圓弧

提問人:楊紫紅發(fā)布時(shí)間:2020-11-19

import tkinter


tk=tkinter.Tk()

canvas = tkinter.Canvas(tk,width=500,height=500)

canvas.pack()


canvas.create_arc(10,10,200,80,extent=359,style=tkinter.ARC)


canvas.create_arc(100,100,200,200,extent=359,style=tkinter.ARC)

image.pngimage.png

參數(shù)的意義

1.圖形左上角坐標(biāo)

2.圖形右下角坐標(biāo)

3.繪制角度

4.繪制圓弧常量


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

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