В Python 3.6+ можно использовать кириллические имена переменных в f-строках. Это стало возможным благодаря PEP 498, который ввел f-строки в Python 3.6. Однако это bad practice.
f-строки — это нечто большее, чем просто вставка переменных. Существует скрытый синтаксис форматирования, называемый Format Mini-Language, который позволяет вам лучше контрировать форматирование:
memory = 1.5e9 # 1.5 Гб в байтах
# Базовый пример print(f"Memory: {memory / 1e9:+.2f} GB") # Добавит знак плюса, оставит только два знака после запятой
В Python 3.6+ можно использовать кириллические имена переменных в f-строках. Это стало возможным благодаря PEP 498, который ввел f-строки в Python 3.6. Однако это bad practice.
f-строки — это нечто большее, чем просто вставка переменных. Существует скрытый синтаксис форматирования, называемый Format Mini-Language, который позволяет вам лучше контрировать форматирование:
memory = 1.5e9 # 1.5 Гб в байтах
# Базовый пример print(f"Memory: {memory / 1e9:+.2f} GB") # Добавит знак плюса, оставит только два знака после запятой
A Telegram spokesman declined to comment on the bond issue or the amount of the debt the company has due. The spokesman said Telegram’s equipment and bandwidth costs are growing because it has consistently posted more than 40% year-to-year growth in users.
Can I mute a Telegram group?
In recent times, Telegram has gained a lot of popularity because of the controversy over WhatsApp’s new privacy policy. In January 2021, Telegram was the most downloaded app worldwide and crossed 500 million monthly active users. And with so many active users on the app, people might get messages in bulk from a group or a channel that can be a little irritating. So to get rid of the same, you can mute groups, chats, and channels on Telegram just like WhatsApp. You can mute notifications for one hour, eight hours, or two days, or you can disable notifications forever.