У нас вы можете посмотреть бесплатно 13 Python f-string formatting tips или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Get my Python cheat-sheet: https://hub.viiana.com/python-cheat-s... In this video we go deep into Python f-strings and the slightly hidden "formatting mini-language", which is an absolute gem that I use all the time. The string formatting mini-language is jam packed with goodies but it is hard to use it effectively just from reading the documentation. In this video I'll lay out some 13 of my best tips for using this wonderful, yet terse, Python feature. Timecodes 0:00 - Intro 0:56 - Formatting mini-language documentation 2:13 - Formatting different data types 2:58 - Print debugging messages conveniently 3:51 - Creating tables with f-strings 6:57 - Max width: truncating strings 7:50 - Parametrize f-string formatting 9:22 - Aligning numbers is not that simple 11:25 - Padding with zeros the right way 12:57 - Align numbers to the right, the right way 14:08 - Respect the users' locale 17:35 - Easy base conversion 19:25 - Print the base and use separators for readability 21:21 - The _format_ method and format() builtin