Separator / \\ and

Default python available "/" Generation linux system path separator is "/", with "\\" substituted windows system path identifier.

import os
value which means the path os.sep separator. Os.sep used in the file path, the script can be cross-linux windows

 

Reference: https://zhidao.baidu.com/question/1861442083216949067.html

Guess you like

Origin www.cnblogs.com/wisir/p/11243603.html