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
5579ba91
Kaydet (Commit)
5579ba91
authored
Şub 23, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#5348: format() converts all kinds of values.
üst
9249f803
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
functions.rst
Doc/library/functions.rst
+6
-5
No files found.
Doc/library/functions.rst
Dosyayı görüntüle @
5579ba91
...
...
@@ -415,14 +415,15 @@ are always available. They are listed here in alphabetical order.
pair: str; format
single: __format__
Convert a
string or a number to a "formatted" representation, as controlled
by *format_spec*. The interpretation of *format_spec* will depend on th
e
type of the *value* argument, however there is a standard formatting syntax
that
is used by most built-in types: :ref:`formatspec`.
Convert a
*value* to a "formatted" representation, as controlled by
*format_spec*. The interpretation of *format_spec* will depend on the typ
e
of the *value* argument, however there is a standard formatting syntax that
is used by most built-in types: :ref:`formatspec`.
.. note::
``format(value, format_spec)`` merely calls ``value.__format__(format_spec)``.
``format(value, format_spec)`` merely calls
``value.__format__(format_spec)``.
.. function:: frozenset([iterable])
...
...
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