发布时间:2019-07-17 10:13:54编辑:auto阅读(2332)
os.path.
split(): 返回dirname() basename() 组成元组。
splitext(): 返回(filename,extension) 元组。
信息:
getatime
getctime
getmtime
getsize
查询:
exists(): 判断指定文件夹是否存在。
isabs(): 判断指定路径是否为绝对路径。
isdir:
isfile
islink
ismount
samefile:两个路径是否指向同一个文件。
练习: 判断文件是否存在,存在打开。让用户输入多行数据。
保存此文件中。
上一篇: Python总结:Python基础(一)
下一篇: python代码
51270
50709
41310
38127
32586
29494
28349
23210
23181
21505
1580°
2301°
1910°
1851°
2166°
1892°
2582°
4321°
4171°
2976°