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
828a0bdb
Kaydet (Commit)
828a0bdb
authored
Eki 20, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
count() now has a 4th parameter too. Also rephrased the docs for find
to use the same, better words to explain start/end.
üst
871cf161
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
24 deletions
+18
-24
libstring.tex
Doc/lib/libstring.tex
+9
-12
libstring.tex
Doc/libstring.tex
+9
-12
No files found.
Doc/lib/libstring.tex
Dosyayı görüntüle @
828a0bdb
...
@@ -110,14 +110,11 @@ sequences.
...
@@ -110,14 +110,11 @@ sequences.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
find
}{
s
\,
sub
\optional
{
\,
start
\optional
{
\,
end
}}}
\begin{funcdesc}
{
find
}{
s
\,
sub
\optional
{
\,
start
\optional
{
\,
end
}}}
Return the lowest index in
\var
{
s
}
not smaller than
\var
{
start
}
and not
Return the lowest index in
\var
{
s
}
where the substring
\var
{
sub
}
is
greater than
\var
{
end
}
where the substring
\var
{
sub
}
is found. Return
found such that
\var
{
sub
}
is wholly contained in
\code
{
-1
}
when
\var
{
sub
}
does not occur as a substring of
\var
{
s
}
with
\code
{
\var
{
s
}
[
\var
{
start
}
:
\var
{
end
}
]
}
. Return -1 on failure.
index at least
\var
{
start
}
and less than
\var
{
end
}
.
Defaults for
\var
{
start
}
and
\var
{
end
}
and interpretation of negative
If
\var
{
start
}
is omitted, it defaults to
\code
{
0
}
. If
\var
{
start
}
is
values is the same as for slices.
negative,
\code
{
len(
\var
{
s
}
)
}
is added.
If
\var
{
end
}
is omitted, it defaults to
\code
{
len(
\var
{
s
}
)
}
. If
\var
{
end
}
is negative,
\code
{
len(
\var
{
s
}
)
}
is added.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
rfind
}{
s
\,
sub
\optional
{
\,
start
\optional
{
\,
end
}}}
\begin{funcdesc}
{
rfind
}{
s
\,
sub
\optional
{
\,
start
\optional
{
\,
end
}}}
...
@@ -134,11 +131,11 @@ Like \code{rfind} but raise \code{ValueError} when the substring is
...
@@ -134,11 +131,11 @@ Like \code{rfind} but raise \code{ValueError} when the substring is
not found.
not found.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
count
}{
s
\,
sub
\optional
{
\,
start
}}
\begin{funcdesc}
{
count
}{
s
\,
sub
\optional
{
\,
start
\optional
{
\,
end
}
}}
Return the number of (non-overlapping) occurrences of substring
Return the number of (non-overlapping) occurrences of substring
\var
{
sub
}
in string
\
var
{
s
}
with index at least
\var
{
start
}
.
\var
{
sub
}
in string
\
code
{
\var
{
s
}
[
\var
{
start
}
:
\var
{
end
}
]
}
.
If
\var
{
start
}
is omitted, it defaults to
\code
{
0
}
. If
\var
{
start
}
is
Defaults for
\var
{
start
}
and
\var
{
end
}
and interpretation of negative
negative,
\code
{
len(
\var
{
s
}
)
}
is added
.
values is the same as for slices
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
lower
}{
s
}
\begin{funcdesc}
{
lower
}{
s
}
...
...
Doc/libstring.tex
Dosyayı görüntüle @
828a0bdb
...
@@ -110,14 +110,11 @@ sequences.
...
@@ -110,14 +110,11 @@ sequences.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
find
}{
s
\,
sub
\optional
{
\,
start
\optional
{
\,
end
}}}
\begin{funcdesc}
{
find
}{
s
\,
sub
\optional
{
\,
start
\optional
{
\,
end
}}}
Return the lowest index in
\var
{
s
}
not smaller than
\var
{
start
}
and not
Return the lowest index in
\var
{
s
}
where the substring
\var
{
sub
}
is
greater than
\var
{
end
}
where the substring
\var
{
sub
}
is found. Return
found such that
\var
{
sub
}
is wholly contained in
\code
{
-1
}
when
\var
{
sub
}
does not occur as a substring of
\var
{
s
}
with
\code
{
\var
{
s
}
[
\var
{
start
}
:
\var
{
end
}
]
}
. Return -1 on failure.
index at least
\var
{
start
}
and less than
\var
{
end
}
.
Defaults for
\var
{
start
}
and
\var
{
end
}
and interpretation of negative
If
\var
{
start
}
is omitted, it defaults to
\code
{
0
}
. If
\var
{
start
}
is
values is the same as for slices.
negative,
\code
{
len(
\var
{
s
}
)
}
is added.
If
\var
{
end
}
is omitted, it defaults to
\code
{
len(
\var
{
s
}
)
}
. If
\var
{
end
}
is negative,
\code
{
len(
\var
{
s
}
)
}
is added.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
rfind
}{
s
\,
sub
\optional
{
\,
start
\optional
{
\,
end
}}}
\begin{funcdesc}
{
rfind
}{
s
\,
sub
\optional
{
\,
start
\optional
{
\,
end
}}}
...
@@ -134,11 +131,11 @@ Like \code{rfind} but raise \code{ValueError} when the substring is
...
@@ -134,11 +131,11 @@ Like \code{rfind} but raise \code{ValueError} when the substring is
not found.
not found.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
count
}{
s
\,
sub
\optional
{
\,
start
}}
\begin{funcdesc}
{
count
}{
s
\,
sub
\optional
{
\,
start
\optional
{
\,
end
}
}}
Return the number of (non-overlapping) occurrences of substring
Return the number of (non-overlapping) occurrences of substring
\var
{
sub
}
in string
\
var
{
s
}
with index at least
\var
{
start
}
.
\var
{
sub
}
in string
\
code
{
\var
{
s
}
[
\var
{
start
}
:
\var
{
end
}
]
}
.
If
\var
{
start
}
is omitted, it defaults to
\code
{
0
}
. If
\var
{
start
}
is
Defaults for
\var
{
start
}
and
\var
{
end
}
and interpretation of negative
negative,
\code
{
len(
\var
{
s
}
)
}
is added
.
values is the same as for slices
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
lower
}{
s
}
\begin{funcdesc}
{
lower
}{
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