是否有单行程序来读取Python中文件的所有行,而不是标准:
f = open('x.txt') cts = f.read() f.close()
似乎经常这样做,所以必须有一个单行.有任何想法吗?
python file-io
file-io ×1
python ×1