05 2016 档案

摘要:在linux命令中,vmstat是个经常用到的分析系统性能的命令之一,主要有两个参数:一个是采样频率,一个是采样的次数。如:vmstat 1 3,意思就是每隔1秒采样1次,总共采样3次。 统计次数过少的话对性能分析不是很全面,统计次数过多的话看分析又不直观,有人会说可以把这些数据都复制出来放到exc 阅读全文
posted @ 2016-05-24 09:55 栗子玄机 阅读(277) 评论(0) 推荐(0)
摘要:# -*- coding:utf-8 -*-from email.mime.text import MIMETextfrom email.header import Headerimport smtplib def send_mail(file_new): f = open(file_new,'rb 阅读全文
posted @ 2016-05-11 14:16 栗子玄机 阅读(226) 评论(0) 推荐(0)
摘要:一、python读取txt文件:(思路:先打开文件,读取文件,最后用for循环输出内容) fp = open('test.txt','r') lines = fp.readlines() fp.close() for line in lines: username = line.split(',') 阅读全文
posted @ 2016-05-05 17:51 栗子玄机 阅读(6116) 评论(0) 推荐(1)