How can we store single \ in a string variable in python

前端 未结 0 1548
旧巷少年郎
旧巷少年郎 2021-01-05 00:59
file_name=file_path.split(\'\\\')

gives me an error because \' is to represent a single quote in python. I wantto split a file name using single bac

相关标签:
回答
  • 消灭零回复
提交回复
热议问题