摘要: Fn + p = pauseFn + b = break 阅读全文
posted @ 2013-12-20 12:21 LisPythoniC 阅读(866) 评论(0) 推荐(0) 编辑
摘要: 1)运行regedit进入注册表。2)依次打开:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer3)右侧框图,把"link"值改为"00 00 00 00"即可 阅读全文
posted @ 2013-12-20 09:52 LisPythoniC 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 真是十分神奇..import win32com.clientimport times = win32com.client.Dispatch("SAPI.SpVoice")s.Speak('哈哈,真有趣,能说中文,还能说English,要不要试试那个什么用一百种语言说我爱你...')我瞬间有种不怕Python做不到就怕自己想不到的感觉. 阅读全文
posted @ 2013-12-19 00:31 LisPythoniC 阅读(289) 评论(0) 推荐(0) 编辑
摘要: (?aiLmsux)(One or more letters from the set 'a', 'i', 'L', 'm', 's', 'u', 'x'.) The group matches the empty string; the letters set the corresponding flags: re.A (ASCII-only matching), re.I (ignore case), re.L (locale dependent), re.M (multi-li 阅读全文
posted @ 2013-12-10 12:33 LisPythoniC 阅读(891) 评论(0) 推荐(0) 编辑
摘要: 两个不起眼但是比较重要的设定Python str类型的字面量解释器当反斜杠及其紧接字符无法构成一个具有特殊含义的序列('recognized escape sequences')时,Python选择保留全部字符.直接看例子:>>> '\c''\\c'>>> '\d''\\d'官方管'\c'这种序列叫'unrecognized escape sequences'.官方文档相应部分:Unlike Standard C, all unrecognized 阅读全文
posted @ 2013-11-28 01:14 LisPythoniC 阅读(6698) 评论(0) 推荐(0) 编辑
摘要: 在模拟登录上,requests确实比python标准库中的相关模块更加简洁.假设你需要去爬一组页面(targetUrls),而这些页面要登录才能进行访问.那么requests能够提供一种相当简单的语法来实现.不过在此之前,你得先通过浏览器的开发人员工具确定:1.递交用户名和密码的页面(loginUrl)2.键值对(递交数据是以字典的形式)模拟举例:#确定登录页面地址和键值对loginUrl = "http://..."loginData={ 'formhash' : "f474a8c6", 'cookietime' : 2 阅读全文
posted @ 2013-11-25 00:52 LisPythoniC 阅读(5930) 评论(0) 推荐(0) 编辑
摘要: 当你想删除右键菜单中某些选项时,一种比较合适的思路是:1.如果软件本身提供了控制选项,那么直接在该软件设置即可.没必要在注册表操作.比如360安全卫士和360杀毒都提供了这种机制.值得一提的是,360安全卫士实际上是由许多子软件构成,比如360软件管家,360隔离沙箱就是2个子软件.它们各自包含独立... 阅读全文
posted @ 2013-11-23 14:40 LisPythoniC 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 目前尚不清楚实质,但已经能够从形式上理解它的某些好处,有个很简单的连乘函数可以说明:为了展示究竟发生了什么,我包装了下乘法函数,将其变为mul.我们将比较product和xproduct的区别.;包装乘法函数(define (mul x y) (display x) (display " * ") (display y) (newline) (* x y));常规版(define (product ls) (let f ((ls ls)) (cond ((null? ls) 1) ((= (car ls) 0) 0) (else (mul (... 阅读全文
posted @ 2013-11-21 18:05 LisPythoniC 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: 摘自:PyWin32.chmIntroductionThis documents how to quickly start using COM from Python. It is not a thorough discussion of the COM system, or of the concepts introduced by COM.Other good information on COM can be found in various conference tutorials - please see the collection of Mark's conference 阅读全文
posted @ 2013-11-20 14:14 LisPythoniC 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 一言蔽之,搭配是关键.以32位Window为例,先后安装:1.PyQtPyQt4-4.10.3-gpl-Py3.3-Qt4.8.5-x32.exehttp://www.riverbankcomputing.com/software/pyqt/download这个简单,下载后直接双击安装.如果你选择PyQt4-4.10.3-gpl-Py3.3-Qt5.1.0-x32.exe,那么你将失败.附开发人员的解释:Please note that eric5 use with PyQt4/Qt5 is still experimental and does notsupport PyQt5/Qt5 at 阅读全文
posted @ 2013-11-20 12:48 LisPythoniC 阅读(571) 评论(0) 推荐(0) 编辑