本章内容介绍了用通过Python语言,用circle画圈:
#!/usr/bin/python # -*- coding: UTF-8 -*- if __name__ == '__main__': from Tkinter import * canvas = Canvas(width=800, height=600, bg='yellow') canvas.pack(expand=YES, fill=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 mainloop()
登录后复制
以上示例输出结果:
以上就是circle是什么意思,3分钟教你用circle画圈的详细内容,更多请关注Work网其它相关文章!