【教程】Python中的内置的模块 和第三方的模块
crifan 13年前 (2012-11-15) 8007浏览
1.Python内置模块和第三方模块 内置模块: Python中,安装好了Python后,本身就带有的库,就叫做Python的内置的库。 内置模块,也被称为Python的标准库。 Python 2.x的在线库函数查询,可以去这里: The Pyt...
工作相关的技术文章
crifan 13年前 (2012-11-15) 8007浏览
1.Python内置模块和第三方模块 内置模块: Python中,安装好了Python后,本身就带有的库,就叫做Python的内置的库。 内置模块,也被称为Python的标准库。 Python 2.x的在线库函数查询,可以去这里: The Pyt...
crifan 13年前 (2012-11-15) 10319浏览
【问题】 之前导入另外一个Python模块,包括自己的模块,都是直接通过 import 模块文件名,即可实现导入。 后来想要把多个子模块都放到当前文件夹下面的某个子文件夹中,但是却不知道如何导入了。 【解决过程】 1.通过类似于 import sub...
crifan 13年前 (2012-11-14) 14890浏览
先贴上Python 2.7 手册中的解释: (...) Matches whatever regular expression is inside the parentheses, and indicates the start ...
crifan 13年前 (2012-11-14) 6120浏览
Python 2.7的手册中的官网解释为: (?=...) Matches if ... matches next, but doesn’t consume any of the string. This is called a lookahea...
crifan 13年前 (2012-11-14) 6645浏览
Python 2.7手册中的官方解释是: (?<=...) Matches if the current position in the string is preceded by a match for ... that...
crifan 13年前 (2012-11-14) 4860浏览
1.别人已经帮忙建立好了Node.js 2.在微软的Azure上找了半天,找到了: http://www.windowsazure.com/en-us/develop/nodejs/tutorials/create-a-website-%28mac%...
crifan 13年前 (2012-11-13) 40668浏览
【问题】 Python中某个字典变量eachInfoDict,其中有个key是MapID。 之前已设置变量的值了: commonInfoDict["MapID"] = str(mapId); ... eachInfoDic = c...
crifan 13年前 (2012-11-13) 19194浏览
【问题】 想要使用Python的xlwt设置单元格的背景色。 但是不知道如何设置。 【解决过程】 1.从Working with Excel Files in Python 找到官网的:The xlwt Module,无果。 2.参考: XLWT :...
crifan 13年前 (2012-11-13) 7919浏览
【Python中解码(decode)HTML中的实体(entity)】 使用Python时,有时候会遇到需要处理HTML代码。 而HTML代码中,有时候会出现所谓的实体,英文叫做Entity。 HTML Entity,总体来说,分两类: name ...
crifan 13年前 (2012-11-12) 13801浏览
【问题】 通过Scrapy创建好了项目: E:\Dev_Root\python\Scrapy>scrapy startproject songtaste 运行项目,结果出错: E:\Dev_Root\python\Scrapy>scrap...