码迷,mamicode.com
首页 >  
搜索关键字:python queue pipe    ( 144597个结果)
ubuntu更新python
在Ubuntu中安装Python32012年05月17日 ? 综合 ? 共 330字 ? 字号 小 中 大 ? 评论关闭 首先,通过命令行安装Python3.2,只需要在终端中通过命令行安装即可:sudo apt-get install python3一路yes。因为Ubuntu很多底层采用的是.....
分类:编程语言   时间:2014-07-22 00:25:35    阅读次数:218
Python:常用的内置函数
内置方法说明__init__(self,...)初始化对象,在创建新对象时调用__del__(self)释放对象,在对象被删除之前调用__new__(cls,*args,**kwd)实例的生成操作__str__(self)在使用print语句时被调用__getitem__(self,key)获取序列...
分类:编程语言   时间:2014-07-22 00:24:36    阅读次数:359
UVa540.Team Queue
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=48113916935540Team QueueAcceptedC++0.3392014-07-21...
分类:其他好文   时间:2014-07-22 00:22:34    阅读次数:217
python threading queue
import queue,threading l=threading.Lock()class MyThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) global...
分类:编程语言   时间:2014-07-22 00:20:34    阅读次数:189
[Python]打开文件的模式
Python中以sys.open()方法打开文件1 import sys2 3 file = open("D:\\file.txt")其中可在第二个参数的位置指定打开文件的模式1 import sys2 3 file = open("D:\\file.txt", "r")参数共有以下几种:rU或Ua...
分类:编程语言   时间:2014-07-22 00:19:34    阅读次数:184
Python时间,日期,时间戳之间转换
1.将字符串的时间转换为时间戳方法:a = "2013-10-10 23:40:00"将其转换为时间数组import timetimeArray = time.strptime(a, "%Y-%m-%d %H:%M:%S")转换为时间戳:timeStamp = int(time.mktime(tim...
分类:编程语言   时间:2014-07-22 00:19:34    阅读次数:246
python深入学习01 特殊方法
Python一切皆对象,但同时,Python还是一个多范式语言(multi-paradigm),你不仅可以使用面向对象的方式来编写程序,还可以用面向过程的方式来编写相同功能的程序(还有函数式、声明式等,我们暂不深入)。Python的多范式依赖于Python对象中的特殊方法(special metho...
分类:编程语言   时间:2014-07-22 00:18:37    阅读次数:255
关于python基础认证(用于爬虫)
转自http://www.voidspace.org.uk/python/articles/authentication.shtml先转来,由于是python2的版本之后会翻译文章以及移植到python3IntroductionThis tutorial aims to explain and il...
分类:编程语言   时间:2014-07-22 00:18:35    阅读次数:588
pythonxml-rpc记录(游戏自动发布)
#!/usr/bin/python#-*-encoding=utf-8-*-####################################fromSimpleXMLRPCServerimportSimpleXMLRPCServerfromSocketServerimportThreadingMixInimportsubprocess,os.path,os,statimportre,getopt,sysERR_INSECURE=‘[INSECURE_NAME]‘ERR_NO_SCRIPT=‘[NO_S..
分类:编程语言   时间:2014-07-21 15:26:17    阅读次数:300
python基础(序列,元祖,列表,字典,对象,类)
1、标准的序列操作:索引、分片、乘法、判断成员资格、求长度、取最大值和最小值2、python之删除命令的区别:>>>x[‘or‘,‘not‘,‘to‘,‘be‘,‘or‘,‘be‘]del:删除指定索引的值>>>delx[0]>>>x[‘not‘,‘to‘,‘be‘,‘or‘,‘be‘]pop:默认删除最后一个值>>..
分类:编程语言   时间:2014-07-21 15:14:17    阅读次数:429
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!