
python
xuuiao
这个作者很懒,什么都没留下…
展开
-
Format Strings for PyArg_ParseTuple()
The PyArg_ParseTuple() function is declared as follows:int PyArg_ParseTuple(PyObject *arg, char *format, ...);The arg argument must be a tuple object containing an argument list passed from转载 2012-01-05 10:07:58 · 1815 阅读 · 0 评论 -
安装pywin32以后,使用出现错误
今天,安装了pywin32,马上迫不及待的写了段win32的python代码。但是执行时告诉我,ImportError: DLL load failed。难道还有什么没做,查了下Google和Baidu,发现是因为没有制定Pywin32的dll所致,我们在用Pywin32开发时,需要用到它的几个DLL。分别是pythoncom32.dllpythoncomloader32.转载 2012-01-05 14:08:55 · 2040 阅读 · 0 评论 -
python实现网络爬虫学习总结
import urllib2import urllibdef openUrl(strUrl): response = urllib2.urlopen(strUrl) retContent = response.read() return retContent def writeFile(content, outputPath, mode='w'):原创 2014-01-24 17:06:18 · 1511 阅读 · 0 评论