Python
liang_xinhui
这个作者很懒,什么都没留下…
展开
-
转换RegExBuddy中的LibraryCode为Cpp字符串
import reimport sys# Read Filefile_src = open(sys.argv[1])all_text = file_src.read()file_src.close()# Remove Commenttext = re.sub("# .*", "", all_text)# Trimtext = re.sub("(?sm)^[ \t]+|[ \t]+原创 2012-12-24 22:49:23 · 713 阅读 · 0 评论 -
实时Log信息,图形化显示(Python matplotlib)
便于调试,可将log信息(时间戳)等实时以图形化显示。免去写入文件、Excel分析等步骤。关键技术:Python、matplotlib、Socket、正则表达式。效果:源代码:import socketimport matplotlib.pyplot as pltimport threadimport reimport stringSHOW_DU原创 2013-01-26 18:02:32 · 5691 阅读 · 0 评论