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

Резултати

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

Пребарај: #aidating

当前筛选 #aidating清除筛选
TON Crypto News

@toncoin_rap · Post #156 · 19.09.2024 г., 14:29

🎧⤴ TON Dating: AI-Powered Compatibility Checks with ChatGPT! TON Dating has become the first dating app to integrate ChatGPT, offering a new feature that analyzes compatibility between users. By clicking on the ChatGPT icon in a profile, the AI examines both users' data to determine their match potential. This move aims to enhance the dating experience within a verified, secure community that rewards user engagement with cryptocurrency. The integration sets TON Dating apart, offering a futuristic, AI-driven approach to finding meaningful connections on the platform. 😴👉https://t.me/tondating Chorus: TON Dating's blowing up, with ChatGPT inside, AI's your new matchmaker, taking love on a ride. Swipe right, swipe left, let the AI decide, Finding true connections where ambition and love collide. Verse 1: Step into the game, TON's raising the stakes, AI compatibility, no more heartbreaks. Profiles verified, no scammers in sight, Pay-to-play, yeah, but it feels just right. Girls roll free, boys paying their dues, Crypto rewards for every match you choose. Swipe with intention, love or coin’s the prize, TON Dating's got the edge, no surprise. Chorus: TON Dating's blowing up, with ChatGPT inside, AI's your new matchmaker, taking love on a ride. Swipe right, swipe left, let the AI decide, Finding true connections where ambition and love collide. Verse 2: Ambition meets beauty, the motto’s legit, Profiles vetted hard, so no catfish hit. Vlad’s got a vision, safe space to thrive, No fake accounts here, just the real ones alive. Stack your TON coin, let your profile shine, The app’s got your back with AI design. Success and smarts, it’s the ultimate find, TON Dating’s got that AI mastermind. Chorus: TON Dating's blowing up, with ChatGPT inside, AI's your new matchmaker, taking love on a ride. Swipe right, swipe left, let the AI decide, Finding true connections where ambition and love collide. Verse 3: Crypto’s the future, and dating’s the key, Bringing people closer through technology. ChatGPT whispers, "Is this love or a game?" It’s matchmaking magic, never quite the same. Filter out the fakes, meet your match on screen, High standards, high hopes in this dating scene. From Telegram to TON, the platform's tight, Find your perfect vibe, under AI light. Chorus: TON Dating's blowing up, with ChatGPT inside, AI's your new matchmaker, taking love on a ride. Swipe right, swipe left, let the AI decide, Finding true connections where ambition and love collide. Bridge: So step up to the future, the game just begun, With ChatGPT matching, you might find "the one." It’s a new world, new rules, tech by your side, TON Dating’s the place where love and crypto collide. #TONDating#AIDating#ChatGPTMatch #TONCryptoNewsRapStyle 🎧@toncoin_rap