Python 分割路径、partition、sep、round、字符串填充
import os # os.path.split 分割路径 path1 = r\'e:\\tool\\read.txt\' print(os.path.split(path1)) # (\'e:\\\\tool\', \'read.txt...
import os # os.path.split 分割路径 path1 = r\'e:\\tool\\read.txt\' print(os.path.split(path1)) # (\'e:\\\\tool\', \'read.txt...