Description: One hundred small algorithm implemented in Python or applets! Absolutely practical! Such as:
【程序56】
题目:画图,学用circle画圆形。
1.程序分析:
2.程序源代码:
#include "graphics.h"
main()
{
int driver,mode,i
float j=1,k=1
driver=VGA mode=VGAHI
initgraph(&driver,&mode,"")
setbkcolor(YELLOW)
for(i=0 i<=25 i++)
{
setcolor(8)
circle(310,250,k)
k=k+j
j=j+0.3
}
}
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()
To Search:
File list (Check if you may need any files):
用python重写了C语言经典100例\JCP001.py
............................\JCP002.py
............................\JCP003.py
............................\JCP004.py
............................\JCP005.py
............................\JCP006.py
............................\JCP007.py
............................\JCP008.py
............................\JCP009.py
............................\JCP010.py
............................\JCP011.py
............................\JCP012.py
............................\JCP013.py
............................\JCP014.py
............................\JCP015.py
............................\JCP017.py
............................\JCP018.py
............................\JCP019.py
............................\JCP020.py
............................\JCP021.py
............................\JCP022.py
............................\JCP023.py
............................\JCP024.py
............................\JCP025.py
............................\JCP026.py
............................\JCP027.py
............................\JCP028.py
............................\JCP029.py
............................\JCP030.py
............................\JCP031.py
............................\JCP032.py
............................\JCP033.py
............................\JCP034.py
............................\JCP035.py
............................\JCP036.py
............................\JCP037.py
............................\JCP038.py
............................\JCP039.py
............................\JCP040.py
............................\JCP041.py
............................\JCP042.py
............................\JCP043.py
............................\JCP044.py
............................\JCP045.py
............................\JCP046.py
............................\JCP047.py
............................\JCP048.py
............................\JCP049.py
............................\JCP051.py
............................\JCP052.py
............................\JCP053.py
............................\JCP054.py
............................\JCP055.py
............................\JCP056.py
............................\JCP057.py
............................\JCP058.py
............................\JCP059.py
............................\JCP060.py
............................\JCP061.py
............................\JCP062.py
............................\JCP063.py
............................\JCP064.py
............................\JCP065.py
............................\JCP066.py
............................\JCP067.py
............................\JCP068.py
............................\JCP069.py
............................\JCP070.py
............................\JCP071.py
............................\JCP072.py
............................\JCP073.py
............................\JCP074.py
............................\JCP075.py
............................\JCP076.py
............................\JCP077.py
............................\JCP078.py
............................\JCP079.py
............................\JCP080.py
............................\JCP081.py
............................\JCP082.py
............................\JCP083.py
............................\JCP084.py
............................\JCP085.py
............................\JCP086.py
............................\JCP087.py
............................\JCP088.py
............................\JCP089.py
............................\JCP090.py
............................\JCP091.py
............................\JCP092.py
............................\JCP093.py
............................\JCP094.py
............................\JCP096.py
............................\JCP097.py
............................\JCP098.py
............................\JCP099.py
用python重写了C语言经典100例
............................\用python重写了C语言经典100例\JCP001.py
............................\............................\JCP002.py
............................\............................\JCP003.py