我有一个文件,看起来像这样:
id001 success:100
id002 success:99
id002 failed:1
id003 failed:100
id004 success:50
id004 failed:50
我希望将其格式化为:
我想将它格式化为:
id001 success:100
id002 success:99 failed:1
id003 failed:100
id004 success:50 failed:50
有人可以给我一个解决方案吗?谢谢!