当前位置:网站首页>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'
边栏推荐
- Daemon xinted and logging syslogd
- Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
- Heartbeat error attempted replay attack
- QQ get group link, QR code
- Climb Phoenix Mountain on December 19, 2021
- DDL language of MySQL database: create, modify alter, delete drop of databases and tables
- JMeter correlation technology
- Introduction to canoe automatic test system
- If function in SQL
- Common system modules and file operations
猜你喜欢
[Galaxy Kirin V10] [desktop] FTP common scene setup
20 kinds of hardware engineers must be aware of basic components | the latest update to 8.13
What if the book written is too popular? Author of "deep reinforcement learning" at Peking University: then open the download
Digital simulation beauty match preparation -matlab basic operation No. 6
Discussion | has large AI become autonomous? Lecun, chief scientist of openai
Installation of ES plug-in in Google browser
Article publishing experiment
Canoe test: two ways to create CAPL test module
[Galaxy Kirin V10] [server] soft RAID configuration
Analysis function in SQL
随机推荐
Locust installation
Introduction to canoe automatic test system
Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
[test theory] test the dimension of professional ability
Fundamentals of database operation
Send a request using paste raw text
Heartbeat启动后无反应
Jemeter script recording
[Galaxy Kirin V10] [desktop] can't be started or the screen is black
VPS installation virtualmin panel
R built in data set
Regular expression
[Galaxy Kirin V10] [server] grub default password
Solaris 10 network services
Oracle11g | getting started with database. It's enough to read this 10000 word analysis
How to use diff and patch to update the source code
Canoe - description of common database attributes
Strings and characters
[test theory] test process management
2022 ape circle recruitment project (software development)