易截截图软件、单文件、免安装、纯绿色、仅160KB

python中文目录

 如有一路径"e:/software/测试.txt" 
需要通过pyhon读/写 "测试.txt"文件,可以采用下面的方法: 
ipath = "e:/software/测试.txt" 
uipath = unicode(ipath , "utf8") 
然后用"uipath"经过编码后的路径去open()即可。 
下面是我在项目中用python读写excel的一点体会(解决了读中文文件名问题,其实中文目录路径也一样): 
def transExcel( inPath ) : 
        excelApp = Dispatch("Excel.Application") 
        inWorkbooks = excelApp.Workbooks.Open( unicode( inPath, "utf8" ) ) 
        #测试下inWorkbooks这个东东有地址么? 
        print "transExcel...",inWorkbooks 
transExcel("e:/software/测试.xls")


相关文档:

opencv python cool

当年做毕业论文的时候openCV就像是我的瑞士军刀,太有感情了。如今用了一年多的python,发现openCV也有python版本了,真是太酷了!当然python在处理图像时还可以用其它库例如PIL(Python Imaging Library ),一种轻量级的图像库。目前openCV1.0版本对应的python版本为2.5,openCV2.0对应python 2.6。
附录:
1. 一篇介绍图 ......

Python 字符串方法


 
Python-String-Function
字符串中字符大小写的变换:
    * S.lower()   #小写
    * S.upper()   #大写
    * S.swapcase()   #大小写互换
    * S.capitalize()   #首字母大写
&n ......

Python & XML


Chapter 1
Python and XML
Python and XML are two very different animals, each with a rich
history. Python is a full-scale programming language that has grown
from scripting world roots in a very organic way, through the vision
and guidance of Python's inventor, Guido van Rossum. Guido continue ......

(python)http://www.python.org/

中文简介
  Python (发音:[ 'paiθ(?)n; (US) 'paiθ?n ]n.蟒蛇,巨蛇 ),是一种面向对象的解释性的计算机程序设计语言,也是一种功能强大而完善的通用型语言,已经具有十多年的发展历史,成熟且稳定。Python 具有脚本语言中最丰富和强大的类库,足以支持绝大多数日常应用。它的名字来源于一个喜剧,也许最初设 ......

Python完全新手教程

作者:taowen, billrice
http://www.cnblogs.com/taowen/articles/11239.html
Lesson 1 准备好学习Python的环境
下载的地址是:
www.python.org
为了大家的方便,我在校内作了copy:
http://10.1.204.2/tool/compiler&IDE/Python-2.3.2-1.exe
linux版本的我就不说了,因为如果你能够使用linux并安装好说明你可以 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号