1 Star 0 Fork 2

eetigite/python100

forked from Yonja/python100 
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
python56.py 710 Bytes
Copy Edit Raw Blame History
zhangweizhi authored 2016-06-04 15:16 +08:00 . the 100 theme
#!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
题目:用circle画圆形
"""
if __name__ == '__main__':
from Tkinter import *
# Canvas:画布
"""
w = Canvas ( master, option=value, ... )
master: 这代表了父窗口.
options: 下面是这个小工具最常用的选项列表。这些选项
可以作为键 - 值对以逗号分隔.
"""
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()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/eetigite/python100.git
git@gitee.com:eetigite/python100.git
eetigite
python100
python100
master

Search