易截截图软件、单文件、免安装、纯绿色、仅160KB
热门标签: c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 最新文章 : Python

Install Python + Eric IDE


Install Python Eric IDE
1 Download following things
 
1) Python3.1
 
2) PyQt for python 3.1
(http://www.riverbankcomputing.co.uk/software/pyqt/download) I am using
PyQt-Py3.1-gpl-4.7.3-2.exe
 
3) Eric5 IDE
(http://eric-ide.python-projects.org/eric-download.html)
 
2 Install python3.1
 
3 Install PyQt
 
4 Extract eric5 zip and run install.py, it will generate more file in
the eric5 folder, run eric4.bat to start eric5 IDE
 
5 The first time you run eric, configuration window will popup.
 
1) select "APIs" node,
select "Compile APIs automatically", select "python" in the
"language" list, click "Add from installed APIs", and then
select "eric5.api", and then click "Compile APIs", click "Apply"
finally.
 
 
2) select
"Autocompletion" node, select "Autocompletion Enabled",
"Case sensitive" and "R ......

Python,简单的力量

Python,简单的力量
豆瓣网对互联网用户来说是知名的Web 2.0社区,但对开发者而言,更重要的是一个应用Python打造的非常成功的Web 2.0站点。
Python诞生已有20年的历史,目前国内的Python发展状况如何?与其他语言(平台)相比,Python有哪些显而易见的优点?豆瓣应用Python进行Web开发有哪些成功经验可以借鉴?带着这些问题,51CTO记者在Qcon 2010会场有幸采访到豆瓣网首席架构师洪强宁先生,由他来向我们讲解Python的Web开发之道。
Python正在成为一门主流语言
Python在国内的兴起已经有近五年的时间,在2004年底豆瓣刚刚开始起步的时候,国内Python用户已经初步形成一个小圈子,集中在CPUG社区(CPUG是中国第一个正式成立的Python社区,聚集了大量Python爱好者,为Python的普及和推广起到重要作用);现在,GPUG的老用户散布在国内各大软件公司,在他们的推动下,现在国内非常多的软件公司在使用Python。
除了社区的推动,榜样的力量也很重要。随着豆瓣的成功,了解Python、学习和应用Python的人也越来越多,它已经不再是几年前的一门小众语言。洪强宁说:“Python在国内的使用已经像前几年在国外的发展一样,逐渐成为一门主流的语言”。
Python简单的力量 ......

基本数据结构的python实现 堆栈

前言:
最近又想学习python,又想去温习一下算法,于是就想出了这个两不误的方法,^_^
堆栈:
使用python的列表结构,详情可以查看help(list)
#Filename: stack.py
shoplist=['apple','mango','carrot','banana']
shoplist.append('rice')
popitem=shoplist[-1]
del shoplist[-1]
print 'the popitem is',popitem
print 'My shopping list is now',shoplist
print 'the next pop item is',shoplist[-1]
print 'after the next pop,the shopping list is',shoplist[:-1] ......

基本数据结构的python实现 队列

队列:
与堆栈类似,通过python的列表类型来实现,参考 help(list)
shoplist=['apple','mango','carrot','banana']
print 'I have',len(shoplist),'items to purchase'
print 'these items are:'
for item in shoplist:
print item,
shoplist.append('rice')
print 'my shopping list is now', shoplist
shoplist.sort()
print 'Sorted shopping list is',shoplist
olditem=shoplist[0]
del shoplist[0]
print 'I bought the',olditem
print 'My shopping list is now',shoplist ......

Python TKinter Gui: Toplevel window

#from pp3e Chapter 9.3
#############################################################################
# popup three new window, with style
# destroy() kills one window, quit() kills all windows and app; top-level
# windows have title, icon, iconify/deiconify and protocol for wm events;
# there always is an app root window, whether by default or created as an
# explicit Tk() object; all top-level windows are containers, but never
# packed/gridded; Toplevel is like frame, but new window, and can have menu;
#############################################################################
    
from Tkinter import *
root = Tk()                                                     # explicit root
 &nbs ......

向python靠近

  折腾计算机,被计算机折腾,前前后后也有十几年。
  最可悲的是居然一无所成,虽然仅仅出于兴趣,并无工作之压力,但是这种挫折感确实是实打实的。
  已经记不起是哪一天了,好像突然就知道了python的存在,从最初的不经意,到越来越喜爱,我一步步的向python靠近。
我喜欢Python,这是一个事实,我撰此文只是想说说python的好,以表达自己对其喜爱之情,并为初学者提供一点有用的建议。
  python简单,你可以很快的上手。
  python强大,你可以完成从小脚本到桌面应用程序再到网络服务与应用的编程。
  python明晰,你可以轻松读懂别人书写的代码,而不用为大量莫名其妙的用法而伤脑筋。
  不管那些别有用意,或者真是高深莫测的人怎么说,python学习起来很快,python用起来很爽。这就够了,不是吗?
  我想,我们或许需要把编程从专业人员那里剥离出来,编程是一种生活,而不应仅仅是一种工作。
  有些专家所谓的建议其实总是从各个方面来攻击Python的不足,却回避python的强项。他们总是用过于专业的眼光在某个方面来挑剔,而不是具体的实用性。
  是的,什么东西都有不足,比如说python执行比较慢,好吧, ......
总记录数:695; 总页数:116; 每页6 条; 首页 上一页 [13] [14] [15] [16] 17 [18] [19] [20] [21] [22]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号