这样的话,不论从哪个路调用getFilePath.py里面的方法,都会找到文件的正确路径。 normpath¶. 另外在做路径连接时,优先使用os.path.normpath,而非os.path.join, ...
確定! 回上一頁