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
53905d8f
Kaydet (Commit)
53905d8f
authored
May 11, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#1153769: document PEP 237 changes to string formatting.
üst
25ad76c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
stdtypes.rst
Doc/library/stdtypes.rst
+8
-5
No files found.
Doc/library/stdtypes.rst
Dosyayı görüntüle @
53905d8f
...
...
@@ -1185,7 +1185,7 @@ The conversion flag characters are:
+---------+---------------------------------------------------------------------+
A length modifier (``h``, ``l``, or ``L``) may be present, but is ignored as it
is not necessary for Python.
is not necessary for Python
-- so e.g. ``%ld`` is identical to ``%d``
.
The conversion types are:
...
...
@@ -1196,13 +1196,13 @@ The conversion types are:
+------------+-----------------------------------------------------+-------+
| ``'i'`` | Signed integer decimal. | |
+------------+-----------------------------------------------------+-------+
| ``'o'`` |
Unsigned octal.
| \(1) |
| ``'o'`` |
Signed octal value.
| \(1) |
+------------+-----------------------------------------------------+-------+
| ``'u'`` |
Unsigned decimal. |
|
| ``'u'`` |
Obselete type -- it is identical to ``'d'``. | \(7)
|
+------------+-----------------------------------------------------+-------+
| ``'x'`` |
Unsigned hexadecimal (lowercase).
| \(2) |
| ``'x'`` |
Signed hexadecimal (lowercase).
| \(2) |
+------------+-----------------------------------------------------+-------+
| ``'X'`` |
Unsigned hexadecimal (uppercase).
| \(2) |
| ``'X'`` |
Signed hexadecimal (uppercase).
| \(2) |
+------------+-----------------------------------------------------+-------+
| ``'e'`` | Floating point exponential format (lowercase). | \(3) |
+------------+-----------------------------------------------------+-------+
...
...
@@ -1271,6 +1271,9 @@ Notes:
The precision determines the maximal number of characters used.
(7)
See :pep:`237`.
Since Python strings have an explicit length, ``%s`` conversions do not assume
that ``'\0'`` is the end of the string.
...
...
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