# 题目:画椭圆组。
from tkinter import *
root = Tk()
root.title('椭圆组')
canvas = Canvas(root, width=500, height=500, bg='white')
x0, y0, x1, y1 = 150, 350, 350, 150
for i in range(8):
canvas.create_oval(x0, y0, x1, y1)
x0 += 10
y0 += 20
x1 -= 10
y1 -= 20
canvas.pack()
mainloop()
运行结果: