अजगर f स्ट्रिंग प्रारूप दौर

कोड उदाहरण

10
0

एफ स्ट्रिंग फ्लोट प्रारूप

>>> a = 10.1234
>>> f'{a:.2f}'
'10.12'
1
0

अजगर f स्ट्रिंग दौर

x = 3.14159265
print(f'pi = {x:.2f}')
# 3.14

अन्य भाषाओं में

यह पृष्ठ अन्य भाषाओं में है

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................