TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Резултати

Пронајдени 7 слични објави

Пребарај: #integrity

当前筛选 #integrity清除筛选
Green University CA | Official

@centralasian_greenuniversity · Post #492 · 05.12.2025 г., 12:42

Green University Marks International Anti-Corruption Day 💬As part of December 9 — International Anti-Corruption Day, Green University conducted a survey among students and stuff to understand their perspectives on key issues. #GreenUniversity#AntiCorruptionDay#Integrity#Transparency#Fairness#TogetherAgainstCorruption ✉️[email protected] ☎️ +998 55 512 00 77 📍Location 🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube

Green University CA | Official

@centralasian_greenuniversity · Post #506 · 09.12.2025 г., 12:48

December 9 -International Anti-Corruption Day ⚠️Corruption slows progress. ❗️Integrity, transparency, and the rule of law make societies stronger. ✅Only together can we fight corruption effectively. #AntiCorruptionDay#Integrity#Transparency#RuleOfLaw #StopCorruption#Compliance#GoodGovernance ✉️[email protected] ☎️ +998 55 512 00 77 📍Location 🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube

Venture Village Wall 🦄

@venturevillagewall · Post #4188 · 19.02.2025 г., 07:00

Saylor's 21 Bitcoin Principles Revealed Michael Saylor shares key insights on Bitcoin ownership: 1. Experts buy Bitcoin. 2. Critics don’t understand it. 3. Opinions shift from negative to positive. 4. Learning about Bitcoin is endless. 5. Bitcoin thrives on chaos. 6. It’s a win-win game. 7. True ownership lies in Bitcoin. 8. You earn Bitcoin as per your worth. 9. Invest only what you can afford to lose. 10. Bitcoin is the ticket out of the matrix. 11. Understanding wants and needs drive comprehension. 12. Expect your models to break. 13. Bitcoin is the cure for economic woes. 14. Choose Bitcoin over fiat. 15. Bitcoin is for everyone. 16. Think in Bitcoin terms. 17. Bitcoin will change you. 18. Stay vigilant against lies. 19. Respect Bitcoin or be a fool. 20. Never sell your Bitcoin. 21. Spread the love for Bitcoin. #Bitcoin#Saylor#Crypto#Investment#Finance#Ownership#Learning#Economics#Innovation#DigitalAssets#MarketTrends#Blockchain#Wisdom#Prosperity#Opinions#Integrity#Wealth#Future#Leadership#Value

Venture Village Wall 🦄

@venturevillagewall · Post #3381 · 18.12.2024 г., 12:09

Fight Disinformation with AI INAR .IA Labs & Technologies has raised $1.21M for its innovative SaaS platform aimed at automating the detection and verification of disinformation across online content. Scheduled to launch on December 18, 2024, this multimodal and multilingual tool is set to enhance online security and information integrity. More details can be found at TrueFlag. #Funding#Technology#AI#SaaS#Disinformation#Verification#OnlineSafety#Security#Innovation#Automation#Multimodal#Multilingual#Integrity#Content#Platform#Launch #2024 #INAR#TrueFlag#Labs

«Привет, Мир»: Исторический снимок Земли с борта Orion на пути к Луне Дата: 2026-04-04 Автор снимка: NASA, Reid Wiseman, Artemis II Этот кадр, сделанный с борта космического корабля Orion «Integrity», запечатлел нашу прекрасную планету от полюса до полюса. На снимке - Земля, какой её видят астронавты миссии Artemis II, впервые за 50 лет направляющиеся к Луне. Что видно на этом снимке? · Африка и Пиренейский полуостров различимы на поверхности бледно-голубой планеты · Солнце заходит за яркий край Земли в правом нижнем углу · Северные сияния коронуют планету сверху справа и снизу слева Кто и когда сделал этот снимок? Командир экипажа Рид Уайзман сфотографировал Землю на второй день полёта (2 апреля), сразу после завершения маневра перехода на траекторию к Луне. Этот манёвр вывел Orion с околоземной орбиты и направил его к спутнику. Исторический контекст: Такое путешествие (облёт Луны с возвращением) человечество совершало в последний раз более 50 лет назад, во времена программы «Аполлон». 👩‍🚀Подписатьсяна канал. #ArtemisII#Orion#Integrity#Земляизкосмоса#снимокЗемли#РидУайзман#астронавты#луна#космос#NASA#возвращениеналУну#пилотируемыйполет#африка#пиренейскийполуостров#северноесияние#южноесияние#история#космическаяфотография