我有一个csv / txt文件,其中包含如下所示的输入数据。
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.javassist</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
我期望使用Python输出以下内容:
a 123,456
b 887
c 198
d 123,456
我尝试同时使用csv和txt阅读器,但无法获得预期的结果。
a 123
a 456
b 887
c 198
d 123
d 456
我只收到最后一行作为输出。我在这里想念什么吗?