import re
path = r'\\u7efc\\u5408'
r = re.sub(r'\\\\', r'\\', path)
print(r)

运行结果为

python \\替换为\

 

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2021-06-13
  • 2022-02-09
  • 2022-01-25
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-04-08
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案