摘要:
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 >>... 阅读全文
摘要:
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']... 阅读全文