码迷,mamicode.com
首页 >  
搜索关键字:python module    ( 144473个结果)
python copy
importcopya=[1,2,3,4,[‘a‘,‘b‘]]#原始对象b=a#赋值,传对象的引用c=copy.copy(a)#对象拷贝,浅拷贝d=copy.deepcopy(a)#对象拷贝,深拷贝a.append(5)#修改对象aprinta[1,2,3,4,[‘a‘,‘b‘],5]>>>printb[1,2,3,4,[‘a‘,‘b‘],5]>>>printc[1,2,3,4,[‘a‘,‘b‘]]>&..
分类:编程语言   时间:2014-10-01 01:53:00    阅读次数:516
每天进步一点点——Ganglia的Python扩展模块开发
使用python开发Ganglia自定义的集群监控信息,快速了解集群健康状态,从开发metric开始...
分类:编程语言   时间:2014-10-01 01:33:30    阅读次数:378
[leetcode]Merge k Sorted Lists @ Python [基础知识: heap]
原题地址:https://oj.leetcode.com/problems/merge-k-sorted-lists/题意:Mergeksorted linked lists and return it as one sorted list. Analyze and describe its com...
分类:编程语言   时间:2014-10-01 00:32:30    阅读次数:270
python网络爬虫程序
URL、URI、URNURL:protocol :// hostname[:port] / path / [;parameters][?query]#fragment
分类:编程语言   时间:2014-10-01 00:28:10    阅读次数:182
zabbix sendmail(python)
#!/usr/bin/python #coding:utf-8 importsmtplib fromemail.mime.textimportMIMEText importsys mail_host=‘smtp.163.com‘ mail_user=‘username‘ mail_pass=‘password‘ mail_postfix=‘163.com‘ defsend_mail(to_list,subject,content): me=mail_user+"<"+mail_user+"@"+mail..
分类:编程语言   时间:2014-10-01 00:25:10    阅读次数:252
ansible学习记录
ansible相关基于paramiko开发的。这个paramiko是什么呢?它是一个纯Python实现的ssh协议库。因此fabric和ansible还有一个共同点就是不需要在远程主机上安装client/agents,因为它们是基于ssh来和远程主机通讯的。Inventory文件用来定义要管理的主机,默认位置/etc/ansible/host..
分类:其他好文   时间:2014-10-01 00:06:40    阅读次数:353
【python】An Introduction to Interactive Programming in Python(week two)
This is a note forhttps://class.coursera.org/interactivepython-005In week two, I have learned:1.event-drvien programing4 event types:Input: button, te...
分类:编程语言   时间:2014-09-30 23:13:50    阅读次数:210
python修改文件内容,不需要read,write多个动作。
python修改文件内容,不需要read,write多个动作。最简单方法。...
分类:编程语言   时间:2014-09-30 21:14:45    阅读次数:206
实战Nagios NSCA方式监控Linux系统资源使用情况 -- Nagios配置篇 -- 被监控端
nagios 被监控端实现python + nsca发送监控数据到Nagios服务端...
分类:移动开发   时间:2014-09-30 20:24:44    阅读次数:321
php - 执行Linux命令没有报错但也没有输出
今天我需要在同事访问我的PHP页面的时候执行一段python脚本,于是我的代码是这样写的: 1 makeLog('ok run workjob'); 4 if($this->is_internal()){ 5 $cmd = '/usr/bin/python /data/script/abc/run....
分类:Web程序   时间:2014-09-30 20:14:50    阅读次数:229
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!