当前位置:网站首页>os. Path built-in module
os. Path built-in module
2022-07-04 11:07:00 【It's a cinch!】
The import module :
import os.path
from os import path
import os.path as Alias
abspath Relative paths —— Returns the absolute path corresponding to the relative path
altsep—— return pthon The separator in
basename—— Return the file name
dirname—— Return to the file directory
isdir—— Judge path( Catalog ) Whether there is
isfile—— Judge whether the file exists
exists—— Determine if a file or directory exists
link—— Judge whether it is a link
ismount—— Determine whether to mount the file
getctime—— Acquisition time ( Creation time )(1970.01.01- today ), Company : second
getmtime—— Get modification time ,(1970.01.01- today ), Company : second
getsize—— Get file size , Company : byte
join—— Splicing path
sep—— Path divider
split—— Split the path
relpath—— Return true path , Absolute path 《==》 abspath
'__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '_abspath_fallback', '_get_bothseps', '_getfinalpathname', '_getfinalpathname_nonstrict', '_getfullpathname', '_getvolumepathname', '_nt_readlink', '_readlink_deep', 'abspath', 'altsep', 'basename', 'commonpath', 'commonprefix', 'curdir', 'defpath', 'devnull', 'dirname', 'exists', 'expanduser', 'expandvars', 'extsep', 'genericpath', 'getatime', 'getctime', 'getmtime', 'getsize', 'isabs', 'isdir', 'isfile', 'islink', 'ismount', 'join', 'lexists', 'normcase', 'normpath', 'os', 'pardir', 'pathsep', 'realpath', 'relpath', 'samefile', 'sameopenfile', 'samestat', 'sep', 'split', 'splitdrive', 'splitext', 'stat', 'supports_unicode_filenames', 'sys'
边栏推荐
- Jemeter plug-in technology
- 2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
- Is Sanli futures safe? How to open a futures account? How to reduce the handling charge of futures at present?
- Object. Assign () & JS (= >) arrow function & foreach () function
- Aike AI frontier promotion (2.14)
- Function introduction of canbedded component
- [Galaxy Kirin V10] [server] soft RAID configuration
- Local MySQL forget password modification method (Windows) [easy to understand]
- QQ group collection
- Fundamentals of software testing
猜你喜欢
Fundamentals of software testing
[Galaxy Kirin V10] [server] NUMA Technology
Appscan installation error: unable to install from Net runtime security policy logout appscan solution
[Galaxy Kirin V10] [desktop] printer
Usage of case when then else end statement
[Galaxy Kirin V10] [desktop] can't be started or the screen is black
[Galaxy Kirin V10] [server] KVM create Bridge
Jemeter script recording
XMIND installation
[Galaxy Kirin V10] [desktop and server] FRP intranet penetration
随机推荐
array_ The contains() function uses
Cacti主机模板之定制版
Personal thoughts on the development of game automation protocol testing tool
51 data analysis post
VPS安装Virtualmin面板
Customized version of cacti host template
[test theory] test phase analysis (unit, integration, system test)
unit testing
software test
CAPL: on sysVar_ Update difference on sysvar
Get the data of the top 100 headlines today with Tianxing data
XMIND installation
regular expression
iptables导致Heartbeat脑裂
[Galaxy Kirin V10] [server] KVM create Bridge
Post man JSON script version conversion
Canoe - description of common database attributes
Object. Assign () & JS (= >) arrow function & foreach () function
Strings and characters
JMeter Foundation