文件名称:100programs-in-Python

介绍说明--下载内容均来自于网络,请自行研究使用

一百个用Python实现的小算法或小程序!绝对实用!如:



【程序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()

-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()


(系统自动生成,下载前可以参看下载内容)

下载文件列表





用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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org