我需要这个排序输出: /dir1NameWithSpaces/dir2NameWithSpaces/dir3NameWithSpaces/File1_04092008/es3.sml: some content .... with words and symbols
/dir1NameWithSpaces/dir2NameWithSpaces/dir3NameWithSpaces/File1_0
以下列格式给出制表符分隔文件,我需要按列方式执行操作。我知道的最简单的解决方案是使用熊猫包,然而我的文件是两个演出,我有阅读困难。所以我决定使用普通的流媒体方法。 在这里,我想动态生成列变量(列数为〜500),其中每个列将存储该特定列中的所有值,包括空格。例如: 变量a将列表[11,22,31,,42,555]。 a b c d e f
11 9 9 1 6
22 8 0 8 2
31 7
我在窗体中的txt文件中有数据。制表符分隔的数据 here
a b c
e f g
tere
x y z
w t y
我需要将列读入列表。像 col1 = ['here', '', '', tere, '', '']
col2= ['', 'a', 'e', '', 'x'.'w']
等等。 我用 import re
infile = ope