我有一个看起来像的文件
12 MG -5.000000000000E-01 -5.000000000000E-01 0.000000000000E+00
16 S 1.558454815345E-01 1.558454815345E-01 2.500000000000E-01
8 O 2.189546044408E-01 -1.271822846411E-01 4.012978695812E-01
我想从行的前面分离出数字,输出为
MG -5.000000000000E-01 -5.000000000000E-01 0.000000000000E+00
S 1.558454815345E-01 1.558454815345E-01 2.500000000000E-01
O 2.189546044408E-01 -1.271822846411E-01 4.012978695812E-01
我有这个
for line in file:
head, sep, tail = line.partition('wildcard')
print tail
我应该为通配符输入什么?