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
ad37e9e7
Kaydet (Commit)
ad37e9e7
authored
Şub 02, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarify that capwords() removes leading/trailing whitespace.
Remove references to regsub, which is obsolescent.
üst
f7c1e5a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
libstring.tex
Doc/lib/libstring.tex
+1
-5
libstring.tex
Doc/libstring.tex
+1
-5
No files found.
Doc/lib/libstring.tex
Dosyayı görüntüle @
ad37e9e7
...
...
@@ -96,9 +96,7 @@ Capitalize the first character of the argument.
Split the argument into words using
\code
{
split
}
, capitalize each word
using
\code
{
capitalize
}
, and join the capitalized words using
\code
{
join
}
. Note that this replaces runs of whitespace characters by
a single space. (See also
\code
{
regsub.capwords()
}
for a version
that doesn't change the delimiters, and lets you specify a word
separator.)
a single space, and removes leading and trailing whitespace.
\end{funcdesc}
\begin{funcdesc}
{
expandtabs
}{
s
\,
tabsize
}
...
...
@@ -161,8 +159,6 @@ string. The optional third argument \var{maxsplit} defaults to 0. If
it is nonzero, at most
\var
{
maxsplit
}
number of splits occur, and the
remainder of the string is returned as the final element of the list
(thus, the list will have at most
\code
{
\var
{
maxsplit
}
+1
}
elements).
(See also
\code
{
regsub.split()
}
for a version that allows specifying a
regular expression as the separator.)
\end{funcdesc}
\begin{funcdesc}
{
splitfields
}{
s
\optional
{
\,
sep
\optional
{
\,
maxsplit
}}}
...
...
Doc/libstring.tex
Dosyayı görüntüle @
ad37e9e7
...
...
@@ -96,9 +96,7 @@ Capitalize the first character of the argument.
Split the argument into words using
\code
{
split
}
, capitalize each word
using
\code
{
capitalize
}
, and join the capitalized words using
\code
{
join
}
. Note that this replaces runs of whitespace characters by
a single space. (See also
\code
{
regsub.capwords()
}
for a version
that doesn't change the delimiters, and lets you specify a word
separator.)
a single space, and removes leading and trailing whitespace.
\end{funcdesc}
\begin{funcdesc}
{
expandtabs
}{
s
\,
tabsize
}
...
...
@@ -161,8 +159,6 @@ string. The optional third argument \var{maxsplit} defaults to 0. If
it is nonzero, at most
\var
{
maxsplit
}
number of splits occur, and the
remainder of the string is returned as the final element of the list
(thus, the list will have at most
\code
{
\var
{
maxsplit
}
+1
}
elements).
(See also
\code
{
regsub.split()
}
for a version that allows specifying a
regular expression as the separator.)
\end{funcdesc}
\begin{funcdesc}
{
splitfields
}{
s
\optional
{
\,
sep
\optional
{
\,
maxsplit
}}}
...
...
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