@MyGovCoronaNewsdesk · Post #13379 · 14.04.2025 г., 06:44
From Runways to Sky-High Stats ✈️ India’s passenger traffic soars 143% — a testament to rising infrastructure, connectivity & progress! #NewIndia
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #60 · 31 мар.
Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic
Пребарај: #newindia
@MyGovCoronaNewsdesk · Post #13379 · 14.04.2025 г., 06:44
From Runways to Sky-High Stats ✈️ India’s passenger traffic soars 143% — a testament to rising infrastructure, connectivity & progress! #NewIndia
Hashtags
@MyGovCoronaNewsdesk · Post #13203 · 03.07.2024 г., 04:22
#NewIndia
Hashtags
@MyGovCoronaNewsdesk · Post #12790 · 05.06.2023 г., 13:02
Exciting opportunity to test your knowledge and contribute to nation-building 📝🧾 Take part in the '9 Years of Seva, Sushasan aur Garib Kalyan' Mahaquiz 2023 and celebrate the progress made towards #NewIndia. Visit: https://quiz.mygov.in/quiz/9-years-seva-sushasan-aur-garib-kalyan-mahaquiz-2023/
Hashtags
@MyGovCoronaNewsdesk · Post #12691 · 10.05.2023 г., 08:52
Modern stations for a modern India! With state-of-the-art facilities & world-class amenities, the upgraded railway stations will be a reflection of #NewIndia's progress
Hashtags
@mygovcoronanewsdesk · Post #12283 · 09.03.2023 г., 07:09
Capture the transformation of #NewIndia with your lens! Participate in contest and get a chance to win exciting cash prizes Visit: https://innovateindia.mygov.in/beneficiary-videos/
Hashtags
@mygovcoronanewsdesk · Post #12181 · 27.02.2023 г., 11:14
Show #NewIndia with your lens! Participate in "Inviting Videos of Transformative Impact" and highlight the benefits received from particular schemes Visit: https://innovateindia.mygov.in/beneficiary-videos/
Hashtags
@mygovcoronanewsdesk · Post #12143 · 23.02.2023 г., 15:11
Calling all creative minds to compose a Jingle for the 100th episode of Mann Ki Baat Participate & get a chance to make your jingle remain in the minds and hearts of #NewIndia Visit: https://secure.mygov.in/task/compose-jingle-100th-episode-mann-ki-baat/
Hashtags
@mygovcoronanewsdesk · Post #12142 · 23.02.2023 г., 14:10
Show #NewIndia with your lens! Participate in "Inviting Videos of Transformative Impact" and highlight the benefits received from particular schemes Visit: https://innovateindia.mygov.in/beneficiary-videos/
Hashtags
@mygovcoronanewsdesk · Post #12118 · 20.02.2023 г., 09:09
Here's a platform to showcase the #NewIndia Share your Before and After videos and describe how a particular scheme of government has benefited you Visit: https://innovateindia.mygov.in/beneficiary-videos/
Hashtags
@mygovcoronanewsdesk · Post #11479 · 29.11.2022 г., 08:10
Are you the next best-selling author of #NewIndia? We are looking for you! Apply for YUVA 2.0 and get mentorship, stipend and much more! Know more here : innovateindia.mygov.in/yuva/
Hashtags
@MyGovHindi · Post #7349 · 17.04.2025 г., 12:14
भारत के जलमार्गों पर व्यापार ने भरी उड़ान! 🚢 FY25 में 145.5 एमएमटी माल ढुलाई — 8 गुना जबरदस्त बढ़त! #NewIndia
Hashtags
@MyGovHindi · Post #7028 · 04.01.2024 г., 04:42
2024 में भी नए कीर्तिमान रचने के लिए तैयार है नया भारत।। 🇮🇳 #NewIndia
Hashtags