摘要: 在windows上使用subst和netuseCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->importosimportsubprocessdefRunCommand(cmd):returnsubprocess.call(cmd)defRunCommandWithOutput(cmd):p=subprocess.Popen(cmd,shell=True,universal_newlines=True,stdout=subprocess.PI 阅读全文
posted @ 2011-01-18 17:15 iTech 阅读(1601) 评论(0) 推荐(0) 编辑
摘要: 一 简单使用 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->defTestLogBasic():importlogginglogging.basicConfig(filename='log.txt',filemode='a',level=logging.NOTSET,format='%(asctime)s-%(levelname)s:%(message)s')logging.debug( 阅读全文
posted @ 2011-01-18 12:59 iTech 阅读(2485) 评论(1) 推荐(0) 编辑