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

Резултати

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

Пребарај: #edl

当前筛选 #edl清除筛选
Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #254 · 01.03.2024 г., 05:33

EDL Unbrick Guide | Nothing Phone (2) [Outdated] Did you mess up your device playing around with flashing tools or pull a "fastboot erase xbl" dance move? Maybe this can help🤣 ⬇️ Download: Links dead 🗒 XDA Thread: Here 🏷 Tags: #Unbrick#EDL ❗️ Requirements: - You need be on a machine running Windows. - Make sure to install the appropriate Qualcomm EDL drivers (Import the .inf file manually after extracting) - If your device can access the bootloader / fastboot, you can proceed using the stock cable. - If your device is unresponsive and cannot be triggered into EDL mode with a button press, a v2 EDL cable is required. ✍️ Instructions: 1. Download the file from the link above. 2. Extract the package. Password is password. 3. Open the NothingFlashTool.exe and run it and then select your phone. 4. Power off your Nothing Phone 2 and then press and hold both the volume keys together to boot into EDL mode. If it does not shows up as Qualcomm HS-USB 9008 under device manager then please install the drivers. For EDL mode volume keys shall work or else you can use a modified cable. 5. Click on Start Button to Flash the phone and let the flashing complete. The phone shall automatically reboot after flash is complete. Note: - Target NOS version post successful flashing is 2.5.1. - DIY for EDL Cable - If the tool stops working or you mess up, dont blame the management here. We dont have any responsibility for the same! 🤓 Provided by: Pong TG Development Team 👤 Posted by: Mvikrant 🐙 Pong Community » CLICK HERE

Hashtags

EU in Kazakhstan 🇪🇺🇰🇿

@euinkazakhstan · Post #190 · 26.09.2022 г., 08:03

Today the European Day of Languages. This day means promoting awareness among the general public of the importance of language learning and protecting linguistic heritage. Did you know that the 🇪🇺EU has 24 official languages? They are: Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Slovak, Slovenian, Spanish and Swedish. **** Бүгін Еуропалық тілдер күні. Бұл күн жалпы қоғамның арасында тіл үйренудің және тілдік мұраны қорғаудың маңыздылығын насихаттайды. 🇪🇺Еуропалық Одақта 24 ресми тіл бар екенін білесіз бе? Олар: болгар, хорват, чех, дат, нидерланд, ағылшын, эстон, фин, француз, неміс, грек, венгр, ирланд, итальян, латыш, литва, мальта, поляк, португал, румын, словак, словен, испан және швед тілдері. #europeandayoflanguages#EDL