Chinaunix首页 | 论坛 | 博客
  • 博客访问: 262169
  • 博文数量: 30
  • 博客积分: 380
  • 博客等级: 一等列兵
  • 技术积分: 477
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-30 21:28
文章分类

全部博文(30)

文章存档

2014年(2)

2013年(13)

2012年(15)

发布时间:2013-12-12 21:29:28

我全程跟的一个项目上CCTV13了,这是一个多么好的可以拿的出手出去吹NB的变量啊!!!......【阅读全文】

阅读(1646) | 评论(0) | 转发(0)

发布时间:2013-12-12 10:37:16

#!/usr/bin/python'makeTextFile.py -- create text file'import os,sysls = os.linesepwhile True:        if os.path.exists('a'):                print "ERROR: '%s' already exists" % 'a'#               br.........【阅读全文】

阅读(1607) | 评论(0) | 转发(0)

发布时间:2013-12-04 17:28:16

#/usr/bin/python#Created by rs.wangimport sys,os,timemysql_usr = 'root'mysql_pwd = 'root'mysql_db = 'mysql'mysql_charset = 'gb2312'bk_path = '/home/wangrs/'cmd_path = '/usr/bin/'Logs_path = bk_path + 'Logs'#log_defdef writeLogs(filename,contents):        f = file(fi.........【阅读全文】

阅读(1694) | 评论(0) | 转发(0)

发布时间:2013-12-02 16:49:53

linux gdb, strace, pstack, pstree, lsof......【阅读全文】

阅读(1629) | 评论(0) | 转发(0)

发布时间:2013-11-25 13:36:46

#!/usr/bin/pythonimport smtplibimport syslog_file = open('/tmp/mail.log','a')log_file.write('test start')def sendmail(**args):    host = 'smtp.126.com'    port = 25    user = 'yamoalq@126.com'    passwd = 'w'    smtp = smtplib.SMTP() .........【阅读全文】

阅读(1645) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册