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

Резултати

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

Пребарај: #tradingcontest

当前筛选 #tradingcontest清除筛选
SingSing Announcement

@singsingchannel · Post #723 · 20.07.2024 г., 04:54

🤔Why join the NFT Trading Contest? 1️⃣Total prize pool of 0.1 ETH (~$350) 2️⃣Win up to 0.01 ETH (~$35) per winner 3️⃣Owning an NFT grants you a seat in our exclusive airdrop event 🎁 4️⃣Special benefit: Owning NFT allows to use RUBY within our SocialFi partners ecosystem 🌐 5️⃣Time to grab your SingSing NFTs is coming to an end soon ⏳ Don’t miss out - Trade Now🚀 Read more and Open Treasure at: X Post #NFT#Crypto#TradingContest#SingSing

SingSing Announcement

@singsingchannel · Post #1002 · 14.11.2024 г., 06:30

🚀$SING Trading Contest on CoinEx is COMING! 💰 Prize Pool: 500,000 $SING(~$9,000) 🗓 Duration: 10AM UTC, Nov 14 - 10AM UTC, Nov 21 Note: ✅All CoinEx users who apply on the promotion page can join (Market Makers excluded). ✅Rewards are based on Spot trading volume ranking. Cumulative volume = Buying + Selling volume in selected markets. Self-matching orders won’t be counted. ✅Market Making accounts are excluded from this event. ✅Sub-accounts cannot join independently; their volume will be counted in the main accounts. ✅Any cheating (batch registration, self-dealing, etc.) will result in disqualification. ✅FAQ About Spot Trading Volume Ranking 🔗 Full details: https://www.coinex.com/en/announcements/detail/32123383532948 #SingSing#TradingContest#CoinEx

SingSing Announcement

@singsingchannel · Post #1009 · 14.11.2024 г., 12:00

🚀2️⃣Separate $SING Trading Contests are NOW LIVE! ✅$SING Trading Contest on BingX 💰 Prize Pool: 2,800,000 $SING (~$50,400) 🗓 Duration: 12PM UTC, Nov 14 - 12PM UTC, Nov 21 Contest is exclusive to newly registered accounts on BingX from 12PM UTC, Nov 14 onwards. 🔗 Full details: https://bingx.com/en/act/contest2/7777/?randomId=6898941344&ref=0PUIUW ✅$SING Trading Contest on CoinEx 💰 Prize Pool: 500,000 $SING (~$9,000) 🗓 Duration: 10AM UTC, Nov 14 - 10AM UTC, Nov 21 🔗 Full details: https://www.coinex.com/en/announcements/detail/32123383532948 ------------------------------ Note: You can participate and receive rewards from 2 contests at the same time Good luck! 🌟 #SingSing#TradingContest#BingX#Coinex

SingSing Announcement

@singsingchannel · Post #739 · 25.07.2024 г., 06:46

🚀 Don't miss out on our exciting ongoing programs at SingSing! 🌟 1️⃣NFT Trading Contest with reward of $35 per winner🏆 2️⃣ Invite Frens to get 20% cashback when your friends claim RUBY and 5% every time their referrals claim it👥 3️⃣ Play to Air with Cowtopia🐄 4️⃣ Boost RUBY by buying Boost Item💎 Join now and get the most out of your SingSing experience! #SingSing#TradingContest#InviteFrens#PlayToAir#BoostRUBY