推荐手册:Python 基础入门教程
本章内容介绍了用通过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()以上示例输出结果:

相关文章推荐:
1.如何用Python画一只兔子——turtle库circle()画圆函数的详细用法介绍
2.怎么用python绘制圆
相关视频推荐:
1.小甲鱼零基础入门学习Python视频教程










