Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
539c1652
Kaydet (Commit)
539c1652
authored
Eki 14, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#6825: small correction to split() docs.
üst
7c4cad51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
os.path.rst
Doc/library/os.path.rst
+8
-8
No files found.
Doc/library/os.path.rst
Dosyayı görüntüle @
539c1652
...
@@ -268,14 +268,14 @@ applications should use string objects to access all files.
...
@@ -268,14 +268,14 @@ applications should use string objects to access all files.
.. function:: split(path)
.. function:: split(path)
Split the pathname *path* into a pair, ``(head, tail)`` where *tail* is the
last
Split the pathname *path* into a pair, ``(head, tail)`` where *tail* is the
pathname component and *head* is everything leading up to that. The *tail* part
last pathname component and *head* is everything leading up to that. The
will never contain a slash; if *path* ends in a slash, *tail* will be empty. If
*tail* part will never contain a slash; if *path* ends in a slash, *tail*
there is no slash in *path*, *head* will be empty. If *path* is empty, both
will be empty. If there is no slash in *path*, *head* will be empty. If
*
head* and *tail* are empty. Trailing slashes are stripped from *head* unless
*
path* is empty, both *head* and *tail* are empty. Trailing slashes are
it is the root (one or more slashes only). In nearly all cases, ``join(head,
stripped from *head* unless it is the root (one or more slashes only). In
tail)`` equals *path* (the only exception being when there were multiple slashes
all cases, ``join(head, tail)`` returns a path to the same location as *path*
separating *head* from *tail*
).
(but the strings may differ
).
.. function:: splitdrive(path)
.. function:: splitdrive(path)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment