我有fileA
,fileB
数据如下图
fileA
,,"user1","email"
,,"user2","email"
,,"user3","email"
,,"user4","email"
fileB
,,user2,location
,,user4,location
,,user1,location
,,user3,location
我想搜索fileA
用户fileB
并仅获取位置并将该位置添加到 fileA/或其他文件
输出期望像
,,"user1","email",location
,,"user2","email",location
,,"user3","email",location
,,"user4","email",location
我正在尝试逻辑,使用 while 获取fileA
用户名并搜索它fileB
以获取位置。但是无法将其添加到fileA
后面
非常感谢您的帮助