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
859043c0
Kaydet (Commit)
859043c0
authored
Mar 21, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix markup.
üst
9c6c47bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
2.6.rst
Doc/whatsnew/2.6.rst
+2
-2
No files found.
Doc/whatsnew/2.6.rst
Dosyayı görüntüle @
859043c0
...
@@ -540,7 +540,7 @@ complicated expressions inside a format string.
...
@@ -540,7 +540,7 @@ complicated expressions inside a format string.
So far we've shown how to specify which field to substitute into the
So far we've shown how to specify which field to substitute into the
resulting string. The precise formatting used is also controllable by
resulting string. The precise formatting used is also controllable by
adding a colon followed by a format specifier. For example:
adding a colon followed by a format specifier. For example:
:
# Field 0: left justify, pad to 15 characters
# Field 0: left justify, pad to 15 characters
# Field 1: right justify, pad to 6 characters
# Field 1: right justify, pad to 6 characters
...
@@ -552,7 +552,7 @@ adding a colon followed by a format specifier. For example:
...
@@ -552,7 +552,7 @@ adding a colon followed by a format specifier. For example:
fmt.format('Banquet', 125) ->
fmt.format('Banquet', 125) ->
'Banquet $ 125'
'Banquet $ 125'
Format specifiers can reference other fields through nesting:
Format specifiers can reference other fields through nesting:
:
fmt = '{0:{1}}'
fmt = '{0:{1}}'
fmt.format('Invoice #1234', width) ->
fmt.format('Invoice #1234', width) ->
...
...
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