@Rossotrudnichestvo_in_Iran · Post #2565 · 03.12.2025 г., 18:57
Learn how Russians call the ‘Moon’! 🌙 P.S. Catch more of my lessons on TikTok! #russianclasses 🔔Gateway to Russia
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #303 · 27 дек.
Наверняка вы замечали, что в Python есть удобная функция для получения переменной окружения os.getenv(NAME) И её "сестра" для создания или изменения переменных окружения os.putenv(NAME, VALUE) Но почему-то putenv() не работает как должно. Энвайромент не обновляется! os.putenv('MYVAR', '1') print(os.getenv('MYVAR')) ... и ничего 😴 Почему так? На самом деле энвайромент обновляется, но это значение не добавляется в словарь os.environ. Откройте исходник функции os.getenv(). Это просто шорткат для os.environ.get() В то время как putenv() это built-in С-функция. Словарь os.environ (или точней класс из MutableMapping) создаётся из энвайромента в момент инициализации. Функция putenv() самостоятельно его не изменяет. В тоже время, когда вы создаёте или изменяете ключ в os.environ, автоматически вызывается putenv() в методе __setitem__(). То есть, технически putenv() всё делает верно, но в os.environ это не отражается. Можно проверить так: >>> os.putenv('MYVAR', '123') >>> os.system('python -c "import os;print(os.getenv(\'MYVAR\'))"') 123 Я объявил переменную в текущем процессе и вызвал дочерний процесс, который её унаследовал и получил в составе os.environ. Аналогично при удалении переменной вызывается еще одна built-in функция unsetenv(), удаляющая переменную из системы. Итого ▫️ Удобней всего явно обновлять переменные через os.environ ▫️ Есть способ неявно создать/удалить переменную через putenv/unsetenv, что не повлияет на os.environ но изменит энвайромент и передаст изменения сабпроцессам. Но так лучше не делать! ▫️os.environ это просто обертка для built-in функций putenv() и unsetenv(). #basic
Hashtags
Пребарај: #russianclasses
@Rossotrudnichestvo_in_Iran · Post #2565 · 03.12.2025 г., 18:57
Learn how Russians call the ‘Moon’! 🌙 P.S. Catch more of my lessons on TikTok! #russianclasses 🔔Gateway to Russia
Hashtags
@rushousebrussels · Post #2116 · 02.10.2024 г., 06:32
Today we continue the topic of confusing emphases! You can find the previous post here. ❓And, as per our tradition, I have a question: What word pairs confused you the most when speaking Russian? Share your stories in the comments! 📸: Pavel Kuzmichev, OZ_Media, Lucy Lambriex, LauriPatterson, bymuratdeniz, David Wall, Westend61, Mariha-kitchen, stocknshares/Getty Images #russianclasses 🔔Russia Beyond
Hashtags
@rushousebrussels · Post #2110 · 29.09.2024 г., 08:27
Don’t let these words confuse you! P.S. Catch more of my lessons on YouTube! #russianclasses 🔔Russia Beyond
Hashtags
@rushousebrussels · Post #2103 · 18.09.2024 г., 09:11
Let's learn the diminutive forms for animal names! тигр -> тигрёнок медведь -> медвежонок слон -> слонёнок курица -> цыплёнок лошадь -> жеребёнок ❓Would you like to have any of these as a pet? :) P.S. Catch more of my lessons on YouTube! #russianclasses
Hashtags
@rushousebrussels · Post #2100 · 10.09.2024 г., 07:54
Привет! We already made blini and kvass - time for okroshka! You’ll find the exact amounts of the ingredients to use here. ❓Have you tried okroshka? And what would you like to cook for next time? 📷: Maria Afonina; Yulia Gusterina/Getty Images #russianclasses 🔔Russia Beyond
Hashtags
@rushousebrussels · Post #2096 · 06.09.2024 г., 14:27
What's in a Russian women's bag? Let's take a look together 😉 ❓What’s in your bag? Share below 👇 P.S. Catch more of my lessons on YouTube! #russianclasses 🔔Russia Beyond
Hashtags
@AfricavRF · Post #429 · 26.01.2024 г., 08:38
Привет, салют и здравствуйте! Today we'll learn 5 Russian greetings. Formal ones: 🇷🇺Здравствуйте! 🇬🇧Hello! 🇷🇺Приветствую! 🇬🇧Greetings! Informal: 🇷🇺Привет! 🇬🇧Hi! 🇷🇺Салют! 🇬🇧Salutations! (Literally: "firework!") Very informal and conversational: 🇷🇺Здорово! (pronounced as ‘здарова!’) 🇬🇧Hey/What's up! ❓Do you know other (unusual) Russian greetings? Drop them in the comments! P.s. watch more videos here! #russianclasses 🔔Russia Beyond
Hashtags
@rushousebrussels · Post #2085 · 27.08.2024 г., 13:19
🔊Sound on ☕ please, repeat Привет! Tired of learning Russian? Great news for you today then: we have thousands of words that are similar to English ones! Let’s start with those relating to food! Notice that the pronunciation is not always similar, so watch out for those accents! Still, learning Russian versions of the words you already know is far easier than learning absolutely new ones 🙂 That’s not the end of the list! Do you have any more examples? Drop them down in the comments! 👇🏼 Credits: Westend61, Aleksandr Kuzmin, Martin Barraud, serggn, Chris Stein, Halfdark/Getty Images Sourse: Russia Beyond https://t.me/russiabeyond/8927 #russianclasses#russianbeyond#РусскийДом#RussianHouse#Образование#КРЯ#brussels#belgium#educationrussia#RussianHouseBrussels#russianlanguagecoursesbrussels#russianlanguage#learnrussian#studyrussian