摘要: 1 >>> l 2 '3.542485\t1.977398\t-1\r\n' 3 >>> l.split() 4 ['3.542485', '1.977398', '-1'] 5 >>> l=l.split() 6 >>> l[:2] 7 ['3.542485', '1.977398'] 8 >>... 阅读全文
posted @ 2015-01-27 23:30 monlh 阅读(9093) 评论(0) 推荐(0) 编辑
摘要: 1 from numpy import * 2 import random 3 import time 4 st = time.time() 5 6 def loaddata(filename): 7 fr = open(''.join([filename, '.txt']... 阅读全文
posted @ 2015-01-27 02:39 monlh 阅读(234) 评论(0) 推荐(0) 编辑