1. Glossaryفەرهەنگی زاراوەکان
Format specifier
دیاریکەری فۆرمات
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە

Definitionپێناسە

A short code after a colon inside the { } of an . It says how to show a value: .2f means two digits after the decimal point, 4 means a width of four characters and > lines the text up on the right.

کۆدێکی کورتە دوای دوو خاڵ لەناو { }ـی کە دیاری دەکات چۆن پیشان بدرێت: .2f واتە دوو دوای خاڵی ، 4 واتە پانیی چوار ؛ >ـیش دەقەکە بەلای ڕاستدا ڕێک دەخات.

Exampleنموونە

Widths keep the columns of a multiplication table straight.

پانییەکان ستوونەکانی خشتەی لێکدان ڕێک ڕادەگرن.

for n in range(5, 8):
    print(f"{n:2} x 3 = {n * 3:3}")
#  5 x 3 =  15
#  6 x 3 =  18
#  7 x 3 =  21

Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر

دیاریکەری فۆرماتەکە، دیاریکەرەکانی فۆرمات، دیاریکەرێکی فۆرمات

Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە

Built on the registry's formatting (فۆرمات); دیاریکەر = something that specifies. Proposed.

Related termsزاراوە پەیوەندیدارەکان

Videosڤیدیۆکان

Learn Python format specifiers in 5 minutes! 💬Bro Code · Englishئینگلیزی · 165K viewsبینین · 4.3K likesلایک · Partبەشی 1:35–5:03 (ofلە 5:21)

Learn more inزیاتر فێربە لە