@DansGN · Post #5714 · 13.12.2024 г., 03:58
顽皮狗发布新作Intergalactic: The Heretic Prophet https://www.youtube.com/watch?v=o7TVPoxwi74 #Intergalactic#NaughtyDog
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
Пребарај: #intergalactic
@DansGN · Post #5714 · 13.12.2024 г., 03:58
顽皮狗发布新作Intergalactic: The Heretic Prophet https://www.youtube.com/watch?v=o7TVPoxwi74 #Intergalactic#NaughtyDog
Hashtags
@cosmomyst · Post #529 · 30.11.2025 г., 12:21
🪐 The light from the Triangulum Galaxy (Messier 33), our next-nearest spiral neighbor, takes about 2.7 million years to reach Earth—meaning we see this galaxy as it was millions of years ago. Even within the Local Group of galaxies, the vast stretches of intergalactic space are so immense that a beam of light travels these cosmic distances only after crossing generations of life on our planet. ✨ #spacedistances⚡#triangulumgalaxy⚡#intergalactic⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #386 · 07.10.2025 г., 12:21
🪐 In 2024, observations with the CHIME radio telescope revealed that some fast radio bursts (FRBs) can travel through the sparse gas between galaxies—known as the intergalactic medium—without slowing down or scattering as much as expected. This suggests that the space between galaxies, like that between the Milky Way and the Triangulum Galaxy (M33), is even more empty and calm than scientists previously thought, allowing these intense millisecond bursts of radio energy to arrive at Earth almost untouched by cosmic matter. ✨ #FRB⚡#radioastronomy⚡#intergalactic⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #34 · 30.07.2025 г., 05:51
🪐 The Andromeda Galaxy, our colossal neighbor, is surrounded by an immense, nearly invisible halo of hot gas that spans more than 1.3 million light-years across. Recent observations with the Hubble Space Telescope revealed that this vast envelope is rich in metals and may be interacting with our own Milky Way’s halo, weaving an intergalactic veil between the two future-colliding giants. ✨ #Andromeda⚡#galactic⚡#halos⚡#intergalactic 👉subscribe Universe Mysteries