@unescowhs · Post #63 · 05.10.2023 г., 06:23
#satellites
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #205 · 22 јан.
Как работает функция reload()? Эта функция нужна для того, чтобы перезагрузить изменившийся код из py-файла без рестарта интерпретатора. Дело в том, что любой импортированный модуль при повторном импорте не будет перечитывать файл. Функция импорта вернёт уже загруженный в память объект модуля. Чтобы обновить код, нужно либо перезапустить всю программу, либо использовать функцию reload() from importlib import reload reload(my_module) 🔸 Функция reload() принимает в качестве аргумента только объект модуля или пакета. Она не может перезагрузить класс или функцию. Только весь файл целиком! 🔸 Перезагрузка пакета перезагрузит только его файл __init__.py, если он есть. Но не вложенные модули. 🔸Она не может перезагрузить ранее не импортированный модуль. 🔸При вызове функция reload() перечитывает и перекомпилирует код в файле, создавая новые объекты. После создания новых объектов перезаписывается ранее созданный неймспейс этого модуля. Это значит, что если где-то этот модуль импортирован через import и обращение к атрибутам происходит через неймспейс (имя) модуля, то такие атрибуты обновятся. Если какие-либо объекты из этого модуля импортированы через from то они будут ссылаться на старые объекты. Напишем простой модуль # mymodule.py x = 1 Теперь импортируем модуль и отдельно переменную х из модуля >>> import mymodule >>> from mymodule import x >>> print(mymodule.x) 1 >>> print(x) 1 Не перезапуская интерпретатор вносим изменения в модуль # mymodule.py x = 2 Делаем перезагрузку модуля и проверяем х ещё раз >>> reload(mymodule) >>> print(mymodule.x) 2 >>> print(x) 1 То же самое будет если присвоить любой объект переменной (даже словарь или список) Повторный импорт обновляет значение >>> from mymodule import x >>> print(x) 2 🔸Созданные инстансы классов не обновятся после перезагрузки модуля. Их придётся пересоздать. #tricks#basic
Пребарај: #satellites
@unescowhs · Post #63 · 05.10.2023 г., 06:23
#satellites
Hashtags
@voir_yeux · Post #12129 · 16.03.2026 г., 09:36
🇨🇳🚀 La Chine a réussi à placer huit satellites en orbite en un seul lancement, a rapporté l’agence Xinhua. #satellites#orbite
Hashtags
@amazingeo · Post #640 · 18.02.2026 г., 20:31
🌍 Modern cartographers use remote sensing from satellites to create digital maps so detailed they can track changes in forests, cities, and coastlines within days of new data. ✨ #cartography⚡#mapping⚡#satellites⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@amazingeo · Post #377 · 15.10.2025 г., 20:31
🌍 The biggest map ever made is the modern digital world map stored by satellites. Billions of points are updated daily, letting scientists watch Earth’s surface change almost in real time. ✨ #cartography⚡#satellites⚡#mapping⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@amazingeo · Post #146 · 30.08.2025 г., 20:12
🌍 In 2000, the complete first digital map of Earth—called the SRTM—was created from space using radar. It captured mountain heights and landscape details for over 80% of Earth’s land. ✨ #mapping⚡#cartography⚡#satellites⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍
@amazingeo · Post #218 · 11.09.2025 г., 16:12
🌍 Satellites can use infrared sensors to spot underground water by detecting tiny temperature differences on Earth's surface, helping find hidden aquifers in dry regions. ✨ #satellites⚡#remote⚡#mapping⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍
@amazingeo · Post #488 · 01.12.2025 г., 20:31
🌍 Recent satellites can map changes in Earth's gravity from space. This helps track shifting water underground after floods or droughts, revealing hidden changes on a continental scale. ✨ #remote-sensing ⚡#satellites⚡#hydrology⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@kamissokosekou3 · Post #37476 · 04.05.2026 г., 12:19
Le Pentagone a demandé aux entreprises de satellites de cacher des images de bases américaines détruites au Moyen-Orient 🛰. La société Planet Labs a confirmé cette demande, a déclaré la journaliste américaine Ana Kasparian 🗣. La réponse officielle du Pentagone était la suivante: “nous ne discutons pas de l'évaluation des dommages au combat pour des raisons de sécurité opérationnelle 🛡. Nos forces restent pleinement opérationnelles et nous continuons à remplir notre mission avec la même préparation et la même efficacité au combat 💪”. En même temps, CNN, citant sa propre enquête, a déclaré qu'au moins 16 bases américaines avaient été détruites et devenues inutilisables, ce qui représente la plupart des bases de la région 📉. #pentagone#entreprises#satellites#images
@amazingeo · Post #639 · 18.02.2026 г., 12:31
🌍 New satellite sensors can track wildfires as they ignite, mapping heat signatures from space day and night. This real-time data helps firefighters respond faster to changing fire fronts. ✨ #satellites⚡#remote-sensing ⚡#wildfires⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@amazingeo · Post #451 · 13.11.2025 г., 12:31
🌍 Some satellites can track how much land sinks or rises after an earthquake by detecting tiny changes—sometimes less than a centimeter—across entire regions from hundreds of kilometers above Earth. ✨ #satellites⚡#remote-sensing ⚡#geodesy⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@amazingeo · Post #299 · 26.09.2025 г., 15:31
🌍 Satellites now measure plant health from space by tracking tiny shifts in leaf color. This "vegetation index" helps predict crop yields and monitor droughts across continents. ✨ #remote⚡#sensing⚡#satellites⚡#agriculture⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@amazingeo · Post #682 · 05.04.2026 г., 20:31
🌍 The newest satellites can now measure tiny changes in tree height worldwide. This helps track forest health and spot illegal logging by comparing images taken months or even days apart. ✨ #satellites⚡#forests⚡#monitoring⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels