✏️ 编辑:posixpath.cpython-39.pyc
路径:
/usr/lib64/python3.9/__pycache__/posixpath.cpython-39.pyc
大小:10.4 KB · 修改:2026-08-12 15:51:23 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �i? � @ s d Z dZdZdZdZdZdZdZdZddl Z ddl Z ddlZddlZdd lT g d �Z dd� Zd d� Zdd� Zdd� Zdd� Zdd� Zejj e_ dd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%Zdadad&d'� Zd(d)� Z d*d+� Z!d,d-�d.d/�Z"d0d1� Z#e j$d2kZ%d7d3d4�Z&d5d6� Z'dS )8a� Common operations on Posix pathnames. Instead of importing this module directly, import os and refer to this module as os.path. The "os.path" name is an alias for this module on Posix systems; on other systems (e.g. Windows), os.path provides the same operations in a manner specific to that platform, and is an alias to another module (e.g. ntpath). Some of this can actually be useful on non-Posix systems too, e.g. for manipulation of the pathname component of URLs. �.�..�/�:z /bin:/usr/binNz /dev/null� )�*)'�normcase�isabs�join� splitdrive�split�splitext�basename�dirname�commonprefix�getsize�getmtime�getatime�getctime�islink�exists�lexists�isdir�isfile�ismount� expanduser� expandvars�normpath�abspath�samefile�sameopenfile�samestat�curdir�pardir�sep�pathsep�defpath�altsep�extsep�devnull�realpath�supports_unicode_filenames�relpath� commonpath� ALLOW_MISSINGc C s t | t�rdS dS d S )N� /r )� isinstance�bytes��path� r3 �!/usr/lib64/python3.9/posixpath.py�_get_sep) s r5 c C s t �| �S )z6Normalize case of pathname. Has no effect under Posix��os�fspath)�sr3 r3 r4 r 4 s r c C s t �| �} t| �}| �|�S )zTest whether a path is absolute)r7 r8 r5 � startswith)r9 r# r3 r3 r4 r <