当前位置:网站首页>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'

边栏推荐
- Using SA token to solve websocket handshake authentication
- [advantages and disadvantages of outsourcing software development in 2022]
- Simple understanding of string
- VI text editor and user rights management, group management and time management
- QQ set group information
- SSH原理和公钥认证
- [Galaxy Kirin V10] [server] system startup failed
- Capl: timer event
- Detailed array expansion analysis --- take you step by step analysis
- Locust installation
猜你喜欢

Hidden C2 tunnel -- use of icmpsh of ICMP

Jemeter script recording

JMeter correlation technology
![[Galaxy Kirin V10] [desktop] can't be started or the screen is black](/img/68/735d80c648f4a8635513894c473860.jpg)
[Galaxy Kirin V10] [desktop] can't be started or the screen is black
![[Galaxy Kirin V10] [server] iSCSI deployment](/img/60/13f43dc584c0768965d60811768948.jpg)
[Galaxy Kirin V10] [server] iSCSI deployment

Analysis function in SQL

Ten key performance indicators of software applications

Digital simulation beauty match preparation -matlab basic operation No. 6

Post man JSON script version conversion

Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
随机推荐
Performance features focus & JMeter & LoadRunner advantages and disadvantages
2、 Operators and branches
DNS hijacking
QQ group collection
Regular expression
Customized version of cacti host template
Appscan installation steps
JMeter correlation technology
Canoe - the second simulation engineering - xvehicle - 2 panel design (operation)
[Galaxy Kirin V10] [desktop] login system flash back
QQ get group information
三立期货安全么?期货开户怎么开?目前期货手续费怎么降低?
Unittest+airtest+beatiulreport combine the three to make a beautiful test report
Canoe test: two ways to create CAPL test module
Fundamentals of database operation
[testing theory] thinking about testing profession
Terms related to hacker technology
51 data analysis post
本地Mysql忘记密码的修改方法(windows)[通俗易懂]
Performance test process