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

Резултати

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

Пребарај: #planes

当前筛选 #planes清除筛选
Airdrop Center

@centralchanel · Post #15656 · 27.12.2024 г., 09:02

#Planes Send the code below to the bot and earn 5K points. Code: howtoearn500 Link:⤵️ https://t.me/plane_cryptobot/planes?startapp=ref_9N3R6M ⛏#ton#planes#dogs

🏆 Premium, NFT, Tokens

@giiveaways · Post #3374 · 17.12.2024 г., 12:58

🚩 Don’t miss out on the Planes project, partnered with none other than Pavel Durov! 🔜Minimal effort — maximum rewards. Earn your first tokens in just a couple of minutes. 💌 To continue farming, simply send 5 messages to your friends. This version emphasizes clarity and flow while maintaining an engaging tone. ✍️Mr. X ............. 👉@Planes ➖➖➖➖➖➖➖➖➖➖ #Planes#ton#Durov

Bali News

@balinews · Post #289 · 10.01.2025 г., 14:05

✈️AirAsia launches new Bali to Darwinflight 📆 Popular low-cost carrier AirAsia is set to launch a new flight between Darwin (Australia) and Denpasar from March 22, 2025. ⏰ The flights will operate every Tuesday, Thursday and Saturday: Denpasar - Darwin 11:40 - 15:55, return 16:35 - 17:55. @BaliNews #transport#planes#destinations

VIP_影视分享

@wangzhuanzhan · Post #33199 · 19.09.2024 г., 06:03

F-f飞f机j总z动d员y2- 飞机总动员2:火线救援 Planes: Fire and Rescue (2014) 直达链接:https://pan.quark.cn/s/18964c0b330e #飞机总动员2:火线救援 #飞机总动员2:救火大行动 #Planes: Fire and Rescue #飞机总动员2 #飞机总动员:火线救援 #飞机总动员:打火英雄 链接:https://link3.cc/sf_com #电影#喜剧#美国#10年代

Daily Channels

@dailychannels · Post #6213 · 17.07.2025 г., 01:00

Channel: Vehicles Cars Planes Ships Military | 3D STL Models Miniatures Print Members: ~13.36K 💢 Username: @vehicles_stl Description: all STL : t.me/addlist/AKCBHdY4zShlZTVi Car models Aircraft models Ship models Tank models STL files 3D printing Scale models Vehicle accessories Classic cars Fighter jets Battleships Armored vehicles Military vehicles Vintage planes Racing Helicopters 🏷 Tags: #auto_moto #stl#print#cars#planes https://telegramchannels.me/channels/vehicles_stl

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40776 · 11.03.2026 г., 23:01

During World War II, engineers studied planes that returned from missions. They first thought the areas with the most bullet holes needed armor. Statistician Abraham Wald realized this was survivorship bias. Survivorship bias happens when you focus only on survivors and ignore failures.The undamaged areas on returning planes were actually the critical spots. Planes hit there did not survive. He recommended reinforcing those undamaged areas. ✈️📊🛡️ [Read more] @googlefactss #SurvivorshipBias#WWII#AbrahamWald#Planes#Statistics#History