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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #32 · 7 фев.

Скорее всего уже слышали, что складывать строки через + это плохая практика. Падение производительности, и всё такое. Без лишних слов, давайте измерять: from timeit import timeit def t1(): # складываем 10 строк через + из переменной t = 'text' for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t2(): # склеиваем список строк через метод join arr = ['text'] * 10 for _ in range(1000): s = ''.join(arr) def t3(): # складываем через + но не из переменной а непосредственно инлайн объекты for _ in range(1000): s = 'text' + 'text' + 'text' + ... # всего 10 раз Теперь каждую строку склейки запустим по 10М раз >>> timeit(t1, number=10000) 0.21951690399964718 >>> timeit(t2, number=10000) 1.4978306379998685 >>> timeit(t3, number=10000) 0.2213820789993406 Хм, а нам говорили что через "+" это плохо и медленно ))) 😁 Тут стоит учитывать, что речь идёт о склейке множества длинных строк. Давайте изменим условия: def t4(): t = 'text'*100 for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t5(): arr = ['text'*100] * 10 for _ in range(1000): s = ''.join(arr) def t6(): for _ in range(1000): s = 'text'*100 + 'text'*100 + ... # всего 10 раз >>> timeit(t4, number=10000) 12.795130728000004 >>> timeit(t5, number=10000) 2.642637542999182 >>> timeit(t6, number=10000) 0.2184546610005782 Вот, уже другой разговор, сразу видна разница, в среднем в 6 раз. Но погодите, почему последний тест t6() по скорости такой же как и t3()? Ведь строки теперь в 100 раз длиннее! Это вопросы оптимизации кода, какие простые изменения ускоряют или замедляют выполнение программы. Мы столкнулись с примером обхода обращения к переменной. Например, именно так работает директива #define в С++, во время компиляции подставляя значение переменной вместо ссылки на неё. В Python это тоже работает, но часто ли вы сможете встретить такой способ работы со строками? К сожалению, способ почти только теоретический. В целом, тесты показали то, что мы хотели. Делаем выводы самостоятельно. Полный листинг 🌍 #tricks

Резултати

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

Пребарај: #rewards

当前筛选 #rewards清除筛选
HTX Announcements

@htxglobalannouncementchannel · Post #14967 · 15.05.2026 г., 01:42

Want to share a $200 pool? The HTX May Referral Campaign is LIVE! 🚀 ✔️ Follow @HTXCommunity + RT 📱 Invite friends to join HTX Telegram + 2nd Group 🔥 Generate your unique invite link via our TG admin & start inviting More invites = More #rewards. Let’s grow together! 📈 ➡️Join NOW ✈️Telegram | ✖️X ✈️Announcements

Hashtags

HTX Announcements

@htxglobalannouncementchannel · Post #14492 · 10.02.2026 г., 07:17

🎙️ AMA Alert | 🎁 Win $200 Everything you need to know about New Funds Bonus Rules —simple, clear, no fluff. 🗓 11 Feb | 10:00 AM (UTC) ✅ Follow @HTXCommunity + RT 📍 Venue: HTX English Telegram Group Set your reminder & come learn how to maximize your #rewards ➡️Join Now! ✈️Telegram | ✖️X ✅Announcements

Hashtags

G-AGENTS AI 🤖 | News

@gametynews · Post #823 · 02.04.2025 г., 12:24

🚀Gamety Monthly Run I is LIVE on Zealy! Another chance to win $500 in $GTY! 🔗 Join now: https://zealy.io/cw/gagentai 🏆 Top 20 Zealy users will be rewarded: 🥇 1st Place – $75 🥈 2nd-10th – $30 each 🥉 11th-20th – $16 each Don’t wait! Complete Zealy tasks now and climb the leaderboard! #Rewards will be distributed 1 month after the campaign ends. 🔈Don’t miss this $GTY Era/ 🕊Tweet 📎Important Links: $GTY Dextools|Website | X | Chat (FULL) | Indonesian Chat | African Chat | Vietnamese Chat | CIS Chat | Discord | Announcement | YouTube | Medium | New Bot | $GTY Staking | $GTY Coinstore

Hashtags

G-AGENTS AI 🤖 | News

@gametynews · Post #803 · 15.03.2025 г., 17:28

🚀Gamety Monthly Run I is LIVE on Zealy! Another chance to win $500 in $GTY! 🏆 Top 20 Zealy users will be rewarded: 🥇 1st Place – $75 🥈 2nd-10th – $30 each 🥉 11th-20th – $16 each Don’t wait! Complete Zealy tasks now and climb the leaderboard! #Rewards will be distributed 1 month after the campaign ends. 🔗 Join now: https://zealy.io/cw/gagentai 🔈Don’t miss this $GTY Era/ 🕊Tweet 📎Important Links: $GTY Dextools|Website | X | Chat (FULL) | Indonesian Chat | African Chat | Vietnamese Chat | CIS Chat | Discord | Announcement | YouTube | Medium | New Bot | $GTY Staking | $GTY Coinstore

Hashtags

Airdrop Presents 🗽

@airdrop_presents · Post #1136 · 30.03.2022 г., 18:30

💎💎PROXIMA AIRDROP💎💎 ✅INSTANT CLAIM $78 ✅ PROXIMA Chain ( PXM ) 🔥We are happy to announce PROXIMA Chain #airdrop session!💎 💰 Claim : 78 ( PXM ) 💳 Claim 78PXM for the first 15,000 people. 👥 Invite People to get 35% BNB and 65% PXM on Every Airdrop and Presale.. Referral NO LIMIT 🔆Claim or Purchase before April 30, 2022! Copy link: 🔗https://proximachain.art/#presale -BSC BEP20 -Contract: https://bscscan.com/token/0x0Df53b771A951798a6F5F909238E901b2c997369 We will cooperate with @PancakeSwap , @binance and @CoinMarketCap on the market launching. 💰 Don’t miss this chance to earn lucrative #rewards!

Airdrop Presents 🗽

@airdrop_presents · Post #1089 · 27.03.2022 г., 15:04

🎉PROXIMA AIRDROP $178IS LIVE ✅INSTAN CLAIM $178✅ PROXIMA Chain ( PXM ) 🔥We are happy to announce PROXIMA Chain #airdrop session!💎 💰 Claim : 78 ( PXM ) 💳 Claim 78PXM for the first 25,000 people. 👥 Invite People to get 35% BNB and 65% PXM on Every Airdrop and Presale.. Referral NO LIMIT Claim or Purchase before March 30, 2022! Copy link: 🔗https://www.proximachain.art/?ref=0x000000000000000000000000000000000000dead -BSC BEP20 -Contract: https://bscscan.com/token/0x0Df53b771A951798a6F5F909238E901b2c997369 We will cooperate with @PancakeSwap , @binance and @CoinMarketCap on the market launching. 💰 Don’t miss this chance to earn lucrative #rewards!

Airdrop Presents 🗽

@airdrop_presents · Post #1039 · 23.03.2022 г., 04:10

🔥BIG AIRDROP🔥 ✅INSTANT CLAIM $200 ✅ TetherMeta ( MUSD ) 🔥 TetherMeta #airdrop session!💎 💰 Claim : 200 ( MUSD ) 💳 Claim 200MUSD for the first 10,000 people. 👥Referral to get 25% BNB + 75% MUSD per Airdrop and Buy. Referral NO LIMIT ! 🔥Listing Price: 1 MUSD = 1 USD Liquidity will add on the Pancakeswap exchanges on May 17, 2022 Claim or Purchase before May 17, 2022! Copy link: 🔗https://tethermeta.art/?ref=0x000000000000000000000000000000000000dead -BSC BEP20 -Contract: https://bscscan.com/token/0x1C3aa9E4c13443D009f64F5480a5D733D4b540e0 💰 Don’t miss this chance to earn lucrative #rewards!Julia Bram, [19/03/2022 01:33] [ Photo ] 🔥BIG AIRDROP🔥 ✅INSTANT CLAIM $200 ✅ TetherMeta ( MUSD ) 🔥 TetherMeta #airdrop session!💎 💰 Claim : 200 ( MUSD ) 💳 Claim 200MUSD for the first 10,000 people. 👥Referral to get 25% BNB + 75% MUSD per Airdrop and Buy. Referral NO LIMIT ! 🔥Listing Price: 1 MUSD = 1 USD Liquidity will add on the Pancakeswap exchanges on May 17, 2022

Airdrop Presents 🗽

@airdrop_presents · Post #1009 · 19.03.2022 г., 04:42

🔥BIG AIRDROP🔥 ✅INSTANT CLAIM $200 ✅ TetherMeta ( MUSD ) 🔥 TetherMeta #airdrop session!💎 💰 Claim : 200 ( MUSD ) 💳 Claim 200MUSD for the first 10,000 people. 👥Referral to get 25% BNB + 75% MUSD per Airdrop and Buy. Referral NO LIMIT ! 🔥Listing Price: 1 MUSD = 1 USD Liquidity will add on the Pancakeswap exchanges on May 17, 2022 Claim or Purchase before May 17, 2022! Copy link: 🔗https://tethermeta.art/?ref=0x000000000000000000000000000000000000dead -BSC BEP20 -Contract: https://bscscan.com/token/0x1C3aa9E4c13443D009f64F5480a5D733D4b540e0 💰 Don’t miss this chance to earn lucrative #rewards!

Airdrop Presents 🗽

@airdrop_presents · Post #997 · 17.03.2022 г., 17:25

🩸THE BIG AIRDROP ✅INSTANT CLAIM $200 ✅ TetherMeta ( MUSD ) 🔥 TetherMeta #airdrop session!💎 💰 Claim : 200 ( MUSD ) 💳 Claim 200MUSD for the first 10,000 people. 👥Referral to get 25% BNB + 75% MUSD per Airdrop and Buy. Referral NO LIMIT ! 🔥Listing Price: 1 MUSD = 1 USD Liquidity will add on the Pancakeswap exchanges on May 17, 2022 Claim or Purchase before May 17, 2022! Copy link: 🔗https://tethermeta.art/?ref=0x000000000000000000000000000000000000dead -BSC BEP20 -Contract: https://bscscan.com/token/0x1C3aa9E4c13443D009f64F5480a5D733D4b540e0 💰 Don’t miss this chance to earn lucrative #rewards!

Airdrop Presents 🗽

@airdrop_presents · Post #903 · 12.03.2022 г., 11:15

🎉THE BIG AIRDROP ✅INSTAN CLAIM $78 ✅ PROXIMA Chain ( PXM ) 🔥We are happy to announce PROXIMA Chain #airdrop session!💎 💰 Claim : 78 ( PXM ) 💳 Claim 78PXM for the first 25,000 people. 👥 Invite People to get 35% BNB and 65% PXM on Every Airdrop and Presale.. Referral NO LIMIT Claim or Purchase before March 30, 2022! Copy link: 🔗https://www.proximachain.art/?ref=0x000000000000000000000000000000000000dead -BSC BEP20 -Contract: https://bscscan.com/token/0x0Df53b771A951798a6F5F909238E901b2c997369 We will cooperate with @PancakeSwap , @binance and @CoinMarketCap on the market launching. 💰 Don’t miss this chance to earn lucrative #rewards!

HTX Announcements

@htxglobalannouncementchannel · Post #14367 · 20.01.2026 г., 07:04

💥Think you can spot fake #HTX staff?👀🔍 Test your scam-spotting skills & win #rewards💰 ✅ Follow @HTXCommunity@HTX_Global 🕹RT+ tag 𝐫𝐞𝐚𝐥 𝐇𝐓𝐗 𝐨𝐟𝐟𝐢𝐜𝐢𝐚𝐥 𝐬𝐭𝐚𝐟𝐟 𝐚𝐜𝐜𝐨𝐮𝐧𝐭𝐬 ❓Join the quiz on Telegram Group! ⏰ 21 Jan, 10 AM (UTC) Stay alert, stay safe. ✈️Telegram | ✖️X ✅Announcements

Hashtags

HTX Announcements

@htxglobalannouncementchannel · Post #14106 · 08.12.2025 г., 06:10

🔥Week 2 just dropped! Climb the #HTX Dual Leaderboard for your shot at $1,500 in #rewards! ✔️ Follow @HTXCommunity + RT 📱 Join Telegram English + 2nd Group 📈 Trade on HTX Inviters vs. Traders — who takes the crown this week? 👑 ➡️Join Now! ✈️Telegram | ✖️X ✅Announcements📷Instagram

Hashtags

123•••56
ПретходнаСтраница 1 од 6Следна