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

边栏推荐
- [Galaxy Kirin V10] [server] system startup failed
- unit testing
- For and while loops
- [test theory] test process management
- How to deal with the relationship between colleagues
- 20 kinds of hardware engineers must be aware of basic components | the latest update to 8.13
- 试题库管理系统–数据库设计[通俗易懂]
- Climb Phoenix Mountain on December 19, 2021
- Postman advanced
- re. Sub() usage
猜你喜欢

Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool

Using Lua to realize 99 multiplication table

DNS hijacking

Summary of collection: (to be updated)

JMeter assembly point technology and logic controller

Postman interface test
![[Galaxy Kirin V10] [server] soft RAID configuration](/img/d5/789387613fafc18f623d0cff45093b.jpg)
[Galaxy Kirin V10] [server] soft RAID configuration
![[Galaxy Kirin V10] [server] NFS setup](/img/ed/bd7f1a1e4924a615cb143a680a2ac7.jpg)
[Galaxy Kirin V10] [server] NFS setup

Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution

Installation of ES plug-in in Google browser
随机推荐
Cacti主机模板之定制版
Notes on writing test points in mind mapping
Post man JSON script version conversion
SQL greatest() function instance detailed example
Canoe - the third simulation project - bus simulation - 2 function introduction, network topology
Solaris 10 network services
Appscan installation error: unable to install from Net runtime security policy logout appscan solution
Basic function exercises
Discussion | has large AI become autonomous? Lecun, chief scientist of openai
Appscan installation steps
Is Sanli futures safe? How to open a futures account? How to reduce the handling charge of futures at present?
Day7 list and dictionary jobs
Simple understanding of generics
First article
Understanding of object
Summary of collection: (to be updated)
[Galaxy Kirin V10] [server] NFS setup
Ten key performance indicators of software applications
Send a request using paste raw text
Performance test overview