随笔分类 -  python

用Python模拟键盘输入
该文被密码保护。
posted @ 2013-05-17 11:35 网宗 阅读(4) 评论(0) 推荐(0)
python多线程
摘要:# _*_ coding:utf8 _*_from threading import Threadimport timedef run(n): for tc in xrange(1,60): print str(n)+'的'+str(tc)+'线程一直在执行时间:'+str(time.time())+"\n" time.sleep(1) passdef startthread(): t1 = Thread(target=run,args=(1,)) t2 = Thread(target=run,args=(2,)) ... 阅读全文
posted @ 2013-04-19 10:25 网宗 阅读(153) 评论(0) 推荐(0)
解决py2exe error: MSVCP90.dll: No such file or directory
摘要:解决py2exe error: MSVCP90.dll: No such file or directory其实只要在windows目录下搜索MSVCP90.dll这个文件,然后拷到python安装目录下就可以了利用py2exe生成exe文件时如果缺少MSVCP90.dll会提示***findingdllsneeded***error:MSVCP90.dll:Nosuchfileordirectory解决办法是在脚本中加入"dll_excludes":["MSVCP90.dll"],具体代码如下:#setup.pyfromdistutils.coreim 阅读全文
posted @ 2013-04-17 09:53 网宗 阅读(564) 评论(0) 推荐(0)
python 基础笔记
该文被密码保护。
posted @ 2013-03-31 00:15 网宗 阅读(4) 评论(0) 推荐(0)
python好文章,好网站
该文被密码保护。
posted @ 2013-03-29 14:55 网宗 阅读(3) 评论(0) 推荐(0)
sqlite connect 在eclipse 我ctrl的时候报错
摘要:The definition was found at: F:\xampp\Python27\DLLs\_sqlite3.pyd(which cannot be opened because it is a compiled extension)最后发现一场笑话'''Created on 2013-3-27@author: Administrator'''import sqlite3 as sqlitecon = sqlite.connect('caiji.db')cu = con.cursor()#cu.execute(' 阅读全文
posted @ 2013-03-27 23:34 网宗 阅读(463) 评论(0) 推荐(0)


糗乐网-糗事|乐事|天下事