mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Merge 3.5
This commit is contained in:
commit
df6f8bf47b
1 changed files with 4 additions and 4 deletions
|
@ -92,11 +92,11 @@ the :mod:`glob` module.)
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
>>> os.path.commonprefix(['/dir1/dir2', '/dir3/dir4'])
|
>>> os.path.commonprefix(['/usr/lib', '/usr/local/lib'])
|
||||||
'/dir'
|
'/usr/l'
|
||||||
|
|
||||||
>>> os.path.commonpath(['/dir1/dir2', '/dir3/dir4'])
|
>>> os.path.commonpath(['/usr/lib', '/usr/local/lib'])
|
||||||
'/'
|
'/usr'
|
||||||
|
|
||||||
|
|
||||||
.. function:: dirname(path)
|
.. function:: dirname(path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue