码迷,mamicode.com
首页 >  
搜索关键字:python 效率    ( 164453个结果)
python批量操作Linux服务器脚本,ssh密码登录(执行命令、上传、下载)(一)
1#-*-coding:utf-8-*-2#批量操作linux服务器(执行命令,上传,下载)3#!/usr/bin/python4importparamiko5importdatetime6importos7importthreading8defssh2(ip,username,passwd,cmd...
分类:编程语言   时间:2014-07-07 11:21:24    阅读次数:259
Python httpsqs封装类
'''httpsqs?????@author xiaopenga = HttpsqsClient('192.168.0.218','1218','httpsqsmmall.com')print a.put('logtest','sdfsfsf')print a.get('logtest')'''im...
分类:编程语言   时间:2014-07-07 11:15:30    阅读次数:249
Python递归遍历目录下所有文件
#自定义函数:import ospath="D:\\Temp_del\\a"def gci (path): parents = os.listdir(path) for parent in parents: child = os.path.join(path,parent)...
分类:编程语言   时间:2014-07-07 10:08:15    阅读次数:343
python基础学习12(核心编程第二版)部分
#-*-coding:utf-8-*-#====================#File:python#Author:python#Date:2014#====================__author__='Administrator'#pythonclass#面向对象编程oop思想,3个...
分类:编程语言   时间:2014-07-03 23:24:06    阅读次数:447
python 列表推导式
1、列表推导式书写形式: [表达式 for 变量 in 列表] 或者 [表示式 for 变量 in 列表 if 条件] 1 #!/usr/bin/python 2 # -*- coding: utf-8 -*- 3 4 li = [1,2,3,4,5,6,7,8,9] 5 print [x*...
分类:编程语言   时间:2014-07-03 23:23:02    阅读次数:212
Python中map,filter,reduce的应用
事例1:l=[('main', 'router_115.236.xx.xx', [{'abc': 1}, {'dfg': 1}]), ('main', 'router_183.61.xx.xx', [{'abc': 0}, {'dfg': 1}]), ('main', 'router_5...
分类:编程语言   时间:2014-07-03 22:31:47    阅读次数:363
centos系统python升级2.7.3
首先下载源tar包可利用linux自带下载工具wget下载,如下所示:wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz下载完成后到下载目录下,解压tar -zxvf Python-2.7.3.tgz进入解压缩后的文件夹cd Py...
分类:编程语言   时间:2014-07-03 22:29:41    阅读次数:226
[ZZ]10 Most Common Mistakes that Python Programmers Make
About PythonPythonis an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures,...
分类:编程语言   时间:2014-07-03 22:24:34    阅读次数:287
Leveldb源码解析之Bloom Filter
Bloom Filter,即布隆过滤器,是一种空间效率很高的随机数据结构。原理:开辟m个bit位数组的空间,并全部置零,使用k个哈希函数将元素映射到数组中,相应位置1.
分类:数据库   时间:2014-07-03 20:47:36    阅读次数:393
python中os模块中文帮助
python中os模块中文帮助python中os模块中文帮助文档文章分类:Python编程python中os模块中文帮助文档翻译者:butalnd 翻译于2010.1.7——2010.1.8,个人博客:http://butlandblog.appspot.com/注此模块中关于unix中的函数大部分...
分类:编程语言   时间:2014-07-03 20:03:08    阅读次数:333
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!