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

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

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

Пребарај: #earntokens

当前筛选 #earntokens清除筛选
ChatGPT AI Technology News

@chatgpt_officialnews · Post #119 · 26.05.2025 г., 16:02

📰 AI News Update: 🤖 In the world of artificial intelligence, researchers have made significant strides in natural language processing. A new model developed by a team at a leading university has surpassed previous benchmarks in understanding context and nuances in text. This advancement could revolutionize chatbots, translation services, and content analysis tools. Moreover, a breakthrough in AI ethics has been achieved with the development of a framework that prioritizes fairness and transparency in machine learning algorithms. This approach aims to mitigate biases and discrimination, ensuring AI systems make ethical decisions in various applications. On the business front, tech giants are investing heavily in AI-driven solutions to enhance customer experiences and streamline operations. Companies across industries are increasingly leveraging AI to drive innovation... ➖➖➖➖🔻 🤖 BOT: @Chatgpt_OfficialBOT 💎@Chatgpt_OfficialNews #️⃣#NeuralHubAI#ReferralContest#EarnTokens#WeeklyAirdrop ➖➖➖➖🔺

ChatGPT AI Technology News

@chatgpt_officialnews · Post #117 · 24.05.2025 г., 11:01

🚀 Referral Contest Heating Up – $200 Weekly Prize! The race is ON, and here are your current top referrers: 🥇Amir – 30 referrals 🥈Pixel Wiz* – 29 referrals 🥉Ref Champ* – 23 referrals But it’s not over yet — you still have time to climb the leaderboard and win your share of the $200 prize this week! ⚡️Just invite your friends using your referral link 😵Every referral brings you closer to the top 🏆Top 3 win: $100 • $60 • $40 Let’s go! Start inviting now and grab that top spot! 📈 ➖➖➖➖🔻 🤖 BOT: @Chatgpt_OfficialBOT 💎@Chatgpt_OfficialNews #️⃣#NeuralHubAI#ReferralContest#EarnTokens#WeeklyAirdrop ➖➖➖➖🔺

Airdrop Strikers™

@airdropstrikers · Post #1187 · 16.04.2023 г., 15:33

By participating in our airdrop campaign, you will not only get a chance to earn JIM tokens, but you will also get an opportunity to be a part of the most revolutionary project of the year. So, don't miss out on this amazing opportunity and join us now! 🙌 https://gleam.io/CmtmH/jimmy-project-airdrop-campaign Spread the word and invite your friends to join the Jimmy project community. Together, we will soar to new heights!🚀#JimmyProject#Airdrop#Cryptocurrency#Blockchain#EarnTokens#JoinUsNow Total $25.000 worth JIM Token supply will be distributed to participants according to points collected. Complete all tasks to benefit airdrop in full! 10 Referral Champions will share 1000 USDT Prize pool!