摘要: 其实经常需要生成一个guid,在各种场合使用。。。也简单写个小脚本实现吧。 实现下来发现速度比较慢... import uuid import sys def show_ver(): print 'guid generator v1.0, by hydonlee' def show_usage(): show_ver() print '''generate a ne... 阅读全文
posted @ 2016-05-09 17:18 东子1573 阅读(4849) 评论(0) 推荐(1) 编辑
摘要: 经常希望可以执行一个命令行N次。。。windows下没有现成的工具(有?推荐给我!) 用python写一个。。。 #!/usr/bin/evn python #coding: utf-8 """ times.py run a command line for n times """ import os import sys import string if __name__ == "_... 阅读全文
posted @ 2016-05-09 17:13 东子1573 阅读(4924) 评论(2) 推荐(0) 编辑