Home  >  Article  >  Backend Development  >  What does circle mean? I will teach you how to draw a circle in 3 minutes.

What does circle mean? I will teach you how to draw a circle in 3 minutes.

Tomorin
TomorinOriginal
2018-08-17 14:46:3512492browse
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:

What does circle mean? I will teach you how to draw a circle in 3 minutes.

## 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn