Recommended manual:Python basic introductory tutorial
This chapter introduces the use of Python language, using 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()
Output result of the above example:
## Recommended related articles:1.
How to draw a rabbit with Python - Detailed introduction to the usage of circle() drawing function of turtle library2.
How to draw a circle with python
Related videos Recommendation : 1.
Little Turtle’s zero-based introduction to learning Python video tutorial
The above is the detailed content of What does circle mean? I will teach you how to draw a circle in 3 minutes.. For more information, please follow other related articles on the PHP Chinese website!