【python- 入门】Tkinter 画图

#!/usr/bin/env Python3  
# -*- coding: utf-8 -*-  
# @Software: PyCharm 
# @virtualenv:workon 
# @Desc:Code descripton 
__author__ = '未昔/AngelFate' 
__date__ = '2020/6/28 11:45'

if  __name__ == '__main__': 
from  Tkinter  import * 
  x = 360 
  y = 160 
  top = y - 30 
  bottom = y - 30  
  canvas = Canvas(width = 400,height = 600,bg = 'white') 
  for  i  in  range(20):
	canvas.create_oval(250 - top,250 - bottom,250 + top,250 + bottom)  
	top -= 5 
	bottom += 5  
canvas.pack()  
mainloop()

【python- 入门】Tkinter 画图