
个人
Allen_Zhong
这个作者很懒,什么都没留下…
展开
-
c/c++ unsigned char 的学习
unsigned char a=257;int(a)=1;//257-256unsigned char a=-1;int(a)=255; //256-1unsigned char a=-257;int(a)=255;//256-1原创 2013-06-27 15:20:15 · 779 阅读 · 0 评论 -
对 autoscape case 报告的统计
#-*- coding: utf-8 -*-# Filename: try_except.pyimport sysimport csv#generate the cases for certain release and statusdef reporter_for_rel(rel,status,func): num_func=0 for line in reader: if line[8] ==原创 2013-09-29 17:32:05 · 552 阅读 · 0 评论 -
循环显示CNFG status with python
#!/usr/bin/pythonimport os,syscmd="FScmd state cnfg vc"cmd2="sleep 2"cmd3="print $(date) cnfg switch|tee -a cnfg_status.log"for i in range(5000): os.system(cmd) os.system(cmd2)原创 2013-11-01 17:47:14 · 535 阅读 · 0 评论 -
generate IFC profile with python
for num in range(1,65001):#!/usr/bin/pythonout_file = open("profile_data","w+")num=0ll=5flag=1 for num in range(1,65001): out_file.write("\n# trigger for invite and register b2b AS\n"+'%d'%fla原创 2013-11-01 17:53:55 · 1139 阅读 · 0 评论 -
Bring up lab --from Leo Li
#! /usr/bin/env python'''@File: bringup.py@Author: Leo Li@Version: 1.0'''import telnetlibimport loggingimport sysimport stringimport reimport timeimport threadimport osimport ftplibim转载 2013-11-05 16:01:46 · 849 阅读 · 0 评论 -
令人耳目一新的女神
来自博客中的一个图片,耳目一新!!!原创 2014-05-10 11:07:17 · 880 阅读 · 1 评论 -
compute the su procedure time with python
#!/usr/bin/python2.6import re,datetimefile_name='sim.log'file=open(file_name,'r')acnum=[];time_res=[];lnum=0def trans_time(time): t1=datetime.datetime.strptime(time,'%y/%m/%d %H:%M:%S')原创 2015-06-30 09:39:26 · 687 阅读 · 0 评论