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

Резултати

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

Пребарај: #cryptotools

当前筛选 #cryptotools清除筛选

🚀TON Tokens: Is the Memecoin Scene Waking Up? The TON ecosystem keeps growing. Alongside the memecoins themselves, new services appear that make it easier to track data and trade. Trading bots are still few, but the trend is up. 🔍@x1000 — a token aggregator and chat assistant The bot pulls key stats on any token and replies as soon as someone posts a contract address. It works in direct messages or group chats, auto-showing fresh info. We’ve already added @x1000 to our work chat — no need to dig through explorers; the bot does it for us. 👨‍💻What the developer plans next Stepan, the creator (link above), says the next updates will add: 🟠 detailed holder stats 🟠 info on dev teams 🟠 a honey-pot check (can you actually sell the token?) 🟠 a scanner for new coins by custom filters 🟠 a possible scam indicator 💻Try the bot now in the comments or via DM. Just send a contract address, for example: EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO #TON#Memecoin#CryptoTools#TelegramTrading#CryptoNews

Airdrop Comic

@airdropcomic · Post #2060 · 11.07.2025 г., 12:26

🔥Profile Launch - Ronin Profile (LIVE) ✅ 💠Ronin has officially launched its Web3 Onchain Identity system — allowing users to create and manage their own profile with multi-wallet support. ☀️Profile Link :- Click Here ⚙️ How to Participate? ♦️Sign in with your Ronin Wallet (Keyless) ♦️Set up your profile and personalize your details ♦️Bind your social accounts for visibility ♦️Do daily check-ins to stay active ♦️Link up to 6 wallet addresses in one profile 🧩Early version available now — new features coming soon 🔐A keyless wallet is required to access your Ronin Profile 🔗 Source:https://x.com/Ronin_Network/status/1943245375638507811 ®Note - Please do your own research (DYOR) before joining to any airdrops project, also airdrop is 100% free. Don't send any fee or penny for receiving airdrop tokens required #RoninProfile#Ronin#Web3Identity#CryptoTools#Airdropcomic