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

Tomorin
Release: 2020-01-16 10:20:33
Original
12564 people have browsed it
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()
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template