Python drawing concentric circles with a little practice tkinter

Small practice of code in Python, using tkinter "with a circle painted round school": the [development environment: Win10, python3.7]
 
import tkinter
if __name__ == '__main__':
    t = tkinter.Tk()
    canvas = tkinter.Canvas(width=800, height=600, bg='yellow')  
    canvas.pack(expand=tkinter.YES, fill=tkinter.BOTH)                
    k = 1
    j = 1
    for i in range(0,26):
        canvas.create_oval(310 - k,250 - k,310 + k,250 + k, width=1)
        k += j
        j += 0.3

    t.mainloop ()
 
 
Mark a link tkinter package, as if speaking more detailed, left to look after.
https://www.cnblogs.com/shwee/p/9427975.html

Guess you like

Origin www.cnblogs.com/vaiky/p/11770704.html