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

边栏推荐
- [test theory] test the dimension of professional ability
- Interview and lecture summary 1
- Performance test method
- Safety testing aspects
- [Galaxy Kirin V10] [server] NUMA Technology
- Send a request using paste raw text
- Simple understanding of seesion, cookies, tokens
- Solaris 10网络服务
- Elevator dispatching (pairing project) ②
- [Galaxy Kirin V10] [desktop] cannot add printer
猜你喜欢
![[test theory] test process management](/img/d2/65865dffacf38d9a8be720868b75f0.jpg)
[test theory] test process management

JMeter Foundation

Introduction to Lichuang EDA
![[Galaxy Kirin V10] [server] failed to start the network](/img/0f/6d2f321da85bd7437d2b86547bd8b4.jpg)
[Galaxy Kirin V10] [server] failed to start the network

Simple understanding of seesion, cookies, tokens

TS type gymnastics: illustrating a complex advanced type

Replace() function
![[Galaxy Kirin V10] [desktop] FTP common scene setup](/img/f6/e4fbfe69a6a7635ee6364114c46fd8.jpg)
[Galaxy Kirin V10] [desktop] FTP common scene setup

JMeter correlation technology
![[Galaxy Kirin V10] [desktop and server] FRP intranet penetration](/img/54/7d1b8b7b8226e2820635dd04b92d1c.jpg)
[Galaxy Kirin V10] [desktop and server] FRP intranet penetration
随机推荐
Postman advanced
QQ get group information
QQ get group settings
For and while loops
Heartbeat启动后无反应
Some tips on learning database
[Galaxy Kirin V10] [server] set time synchronization of intranet server
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Elevator dispatching (pairing project) ③
[Galaxy Kirin V10] [desktop] printer
Canoe the second simulation engineering xvehicle 3 CAPL programming (operation)
[Galaxy Kirin V10] [desktop] FTP common scene setup
Performance features focus & JMeter & LoadRunner advantages and disadvantages
VPS安装Virtualmin面板
[machine] [server] Taishan 200
thread
Post man JSON script version conversion
VI text editor and user rights management, group management and time management
Customized version of cacti host template
Performance test method