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
f4d0d578
Kaydet (Commit)
f4d0d578
authored
Tem 30, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added maketrans() and optional 3rd arg to translate() (chars to delete).
üst
910a671b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
libstring.tex
Doc/lib/libstring.tex
+11
-3
libstring.tex
Doc/libstring.tex
+11
-3
No files found.
Doc/lib/libstring.tex
Dosyayı görüntüle @
f4d0d578
...
...
@@ -123,6 +123,13 @@ negative, \code{len(\var{s})} is added.
Convert letters to lower case.
\end{funcdesc}
\begin{funcdesc}
{
maketrans
}{
from, to
}
Return a translation table suitable for passing to
\code
{
string.translate
}
or
\code
{
regex.compile
}
, that will map each character in
\var
{
from
}
into the character at the same position in
\var
{
to
}
;
\var
{
from
}
and
\var
{
to
}
must have the same length.
\end{funcdesc}
\begin{funcdesc}
{
split
}{
s
}
Return a list of the whitespace-delimited words of the string
\var
{
s
}
.
...
...
@@ -159,10 +166,11 @@ Remove leading and trailing whitespace from the string
Convert lower case letters to upper case and vice versa.
\end{funcdesc}
\begin{funcdesc}
{
translate
}{
s, table
}
Translate the characters from
\var
{
s
}
using
\var
{
table
}
, which must be
\begin{funcdesc}
{
translate
}{
s, table
\optional
{
, deletechars
}}
Delete all characters from
\var
{
s
}
that are in
\var
{
deletechars
}
(if present), and
then translate the characters using
\var
{
table
}
, which must be
a 256-character string giving the translation for each character
value, indexed by its ordinal.
value, indexed by its ordinal.
\end{funcdesc}
\begin{funcdesc}
{
upper
}{
s
}
...
...
Doc/libstring.tex
Dosyayı görüntüle @
f4d0d578
...
...
@@ -123,6 +123,13 @@ negative, \code{len(\var{s})} is added.
Convert letters to lower case.
\end{funcdesc}
\begin{funcdesc}
{
maketrans
}{
from, to
}
Return a translation table suitable for passing to
\code
{
string.translate
}
or
\code
{
regex.compile
}
, that will map each character in
\var
{
from
}
into the character at the same position in
\var
{
to
}
;
\var
{
from
}
and
\var
{
to
}
must have the same length.
\end{funcdesc}
\begin{funcdesc}
{
split
}{
s
}
Return a list of the whitespace-delimited words of the string
\var
{
s
}
.
...
...
@@ -159,10 +166,11 @@ Remove leading and trailing whitespace from the string
Convert lower case letters to upper case and vice versa.
\end{funcdesc}
\begin{funcdesc}
{
translate
}{
s, table
}
Translate the characters from
\var
{
s
}
using
\var
{
table
}
, which must be
\begin{funcdesc}
{
translate
}{
s, table
\optional
{
, deletechars
}}
Delete all characters from
\var
{
s
}
that are in
\var
{
deletechars
}
(if present), and
then translate the characters using
\var
{
table
}
, which must be
a 256-character string giving the translation for each character
value, indexed by its ordinal.
value, indexed by its ordinal.
\end{funcdesc}
\begin{funcdesc}
{
upper
}{
s
}
...
...
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