文件路径拆分(分解)
By
admin
at 2017-12-10 • 1人收藏 • 1711人看过
import console; path = io.splitpath("z:\编辑部\==连版==\已经照排过的版面\old\9-6-51.ps") io.open() io.print("驱动器",path.drive) io.print("目录",path.dir) io.print("文件名",path.name) io.print("后缀名",path.ext) io.print("文件名+后缀名",path.file); console.pause(true);
3 个回复 | 最后更新于 2018-02-06
![admin](/upload/avatar/middle/1.png)
admin
2018-01-05
#1
登录后方可回帖