my_dict = {
"客戶": "customer",
"關係人": "relation_person",
}
for k, v in my_dict.items():
cell_value = cell_value.replace(k, v)
print(i, cell_value)
python 根据 字典 替换字符串 replace string by dict
最新推荐文章于 2023-11-07 09:53:59 发布