怎样将电脑 上的文件路径如’C:Windows\L ogsldosvc',请将该路径分割为不同的文件夹。
想要得到啥?这个吗?
>>> d = "C:Windows\L ogsldosvc" >>> d.split("\\") ['C:Windows', 'L ogsldosvc']
https://blog.csdn.net/weixin_39862382/article/details/110192597