参考文章:http://www.cppcns.com/jiaoben/python/261979.html

import re

new_filename=re.sub(r'[\\/:*?"<>|\r\n]+', "_", old_filename)

 

相关文章:

  • 2021-06-11
  • 2022-12-23
  • 2021-06-27
  • 2021-12-29
猜你喜欢
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-10-26
相关资源
相似解决方案