2017年10月10日

摘要: 所属模块命令名称使用范例功能说明 Python dir(module) dir(math) 查看模块中包含的工具 Python help(object) help(math.pow) 查看命令使用方法 Python zip(a,b,...) l1,l2,l3 = (1,2,3),(4,5,6),(7 阅读全文
posted @ 2017-10-10 18:55 北小荒 阅读(187) 评论(0) 推荐(0) 编辑
 

2017年9月24日

摘要: 1、数据提取 def loadData(filePath): myData=[] file=open(filePath) for line in file.readlines()[1:]: oldLine=line.strip().split('\t') myLine=list(map(float, 阅读全文
posted @ 2017-09-24 18:54 北小荒 阅读(1628) 评论(0) 推荐(0) 编辑