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

边栏推荐
- Postman interface test
- [Galaxy Kirin V10] [server] system startup failed
- Lvs+kept realizes four layers of load and high availability
- Day06 list job
- [test theory] test process management
- Iterator generators and modules
- Usage of with as
- Performance features focus & JMeter & LoadRunner advantages and disadvantages
- [Galaxy Kirin V10] [server] KVM create Bridge
- Summary of collection: (to be updated)
猜你喜欢

Open the neural network "black box"! Unveil the mystery of machine learning system with natural language

Unittest+airtest+beatiulreport combine the three to make a beautiful test report

JMeter Foundation

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

Oracle11g | getting started with database. It's enough to read this 10000 word analysis

Analysis function in SQL

XMIND installation

SQL greatest() function instance detailed example

Discussion | has large AI become autonomous? Lecun, chief scientist of openai

Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
随机推荐
QQ group collection
Unittest+airtest+beatiulreport combine the three to make a beautiful test report
DNS hijacking
SSH principle and public key authentication
JMeter correlation technology
Performance test method
Send a request using paste raw text
Dictionaries and collections
Lvs+kept realizes four layers of load and high availability
[test theory] test process management
Basic function exercises
Learning XML DOM -- a typical model for parsing XML documents
QQ get group information
Canoe-the second simulation project-xvehicle-1 bus database design (idea)
Heartbeat启动后无反应
JMeter Foundation
Personal thoughts on the development of game automation protocol testing tool
Advanced order of function
QQ get group settings
Test question bank management system - database design [easy to understand]