python的readline()和readlines()
自认为对python已经很熟悉了,结果今天处理数据的时候竟然在按行取数这里难住了,写篇博客记录下,以后也要养成好习惯。dataSet=[[]]with open('G:\\churn.txt') as f: for line in f.readline(): data=line.split(',') dataSet.append(data)数据是多...