自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 python smtp发送邮件

http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/001386832745198026a685614e7462fb57dbf733cc9f3ad000def send_mail(receiver, subject, body): print "send mail: ",

2015-09-29 12:28:53 370

原创 python生成html

https://code.google.com/p/pyh/pyh moduledef html_table(data): table = pyh.table(border=1) for row in data: tr = pyh.tr() for i in row: tr << pyh.td(i)

2015-09-29 12:26:47 751

原创 网页打开速度测量

WebPagetestis an open source project that is primarily being developed and supported by Google as part of our efforts to make the web faster.

2015-09-25 15:41:35 454

原创 GlusterFS错误

df: `/mnt/gluster/xx': Transport endpoint is not connectedumount /mnt/gluster/xxmount /mnt/gluster/xx

2015-09-14 09:33:54 1021

原创 python中set比list更耗内存

set1000000 917292 899754 104808 [14:06:05] 85M, 284M2000000 1836102 1795411 210149 [14:06:51] 162M, 360M3000000 2766704 2706924 300209 [14:07:36] 222M, 421M4000000 3705532 3623674 381064 [14:08:2

2015-09-11 14:20:49 2748

原创 python内存使用情况

pip install psutil pid = os.getpid() process = psutil.Process(pid=pid) rss, vms = process.memory_info() print "[%s] %dM, %dM" % (datetime.datetime.now().strftime("%H:%M:%S"), rs

2015-09-11 10:14:20 545

原创 python关闭stdout输出缓冲

加-u参数python -u xxx.py或class Unbuffered(object): def __init__(self, stream): self.stream = stream def write(self, data): self.stream.write(data) self.stream.flush

2015-09-02 14:52:40 2452

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除