网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

用Mathematica处理文件名

时间:2024-10-12 20:25:52

1、给出一个文件的绝对路径:a = "D:\\我的图片\\a.jpg";可以用FileExtension查看文件的扩展名。

用Mathematica处理文件名

2、分割文件的路径:FileNameSplit

用Mathematica处理文件名

3、把分隔开的路径串联起来:FileNameJoin

用Mathematica处理文件名

4、查看文件的深度:FileNameDepth

用Mathematica处理文件名

5、单独提取文件名:FileNameTake

用Mathematica处理文件名

6、单独提取文件目录:DirectoryName

用Mathematica处理文件名

7、查看这个文件是否存在:FindFile

用Mathematica处理文件名

8、如果这个文件不存在,就无法Find。

用Mathematica处理文件名
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com