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
222e1279
Kaydet (Commit)
222e1279
authored
Ock 11, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix markup.
üst
3540b508
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
string.rst
Doc/library/string.rst
+3
-3
No files found.
Doc/library/string.rst
Dosyayı görüntüle @
222e1279
...
@@ -230,8 +230,8 @@ as a string, overriding its own definition of formatting. By converting the
...
@@ -230,8 +230,8 @@ as a string, overriding its own definition of formatting. By converting the
value to a string before calling :meth:`__format__`, the normal formatting logic
value to a string before calling :meth:`__format__`, the normal formatting logic
is bypassed.
is bypassed.
Two conversion flags are currently supported: ``'!s'`` which calls :func:`str
()
`
Two conversion flags are currently supported: ``'!s'`` which calls :func:`str`
on the value, and ``'!r'`` which calls :func:`repr
()
`.
on the value, and ``'!r'`` which calls :func:`repr`.
Some examples::
Some examples::
...
@@ -289,7 +289,7 @@ Most built-in types implement the following options for format specifications,
...
@@ -289,7 +289,7 @@ Most built-in types implement the following options for format specifications,
although some of the formatting options are only supported by the numeric types.
although some of the formatting options are only supported by the numeric types.
A general convention is that an empty format string (``""``) produces the same
A general convention is that an empty format string (``""``) produces the same
result as if you had called :func:`str
()
` on the value.
result as if you had called :func:`str` on the value.
The general form of a *standard format specifier* is:
The general form of a *standard format specifier* is:
...
...
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