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

Резултати

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

Пребарај: #spkusdt

当前筛选 #spkusdt清除筛选
Propheta Indicator Signals

@propheta_indicator · Post #23238 · 28.12.2025 г., 03:40

⭐️ Long | Entry: 0.02361 Symbol: #SPKUSDT - Binance futures link — 📤 Signal details — TP 1️⃣: 0.02373 TP 2️⃣: 0.02385 TP 3️⃣: 0.02396 TP 4️⃣: 0.02408 TP 5️⃣: 0.02432 TP 6️⃣: 0.02455 TP 7️⃣: 0.02479 TP 8️⃣: 0.02503 TP 9️⃣: 0.0255 ⛔️ Stop loss: 0.02243 🏦 Leverage: at your discretion 💰 Entry percentage: 1-5% 👆 A signal for you from the VIP HTL channel!

Hashtags

Propheta Indicator Signals

@propheta_indicator · Post #23249 · 28.12.2025 г., 19:39

👆 Propheta living up to its name yet again 🔮 #SPKUSDT reached 9th TP! Signal from our VIP CLUB channel! Feels good to be a Propheta VIP, man... 🏖ACCESS TO MANUAL TRADING for 70usdt/month 👉 We will keep posting about how we earn money. Will you keep watching how someone else does it, or start earning yourself? Subscribe using our telegram bot: t.me/ProphetaAdmin_bot Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #trading#autotrading#bitcoin

Propheta Indicator Signals

@propheta_indicator · Post #23300 · 03.02.2026 г., 18:43

👆 Propheta living up to its name yet again 🔮 #SPKUSDT has just reached 9th TP in the VIP CLUB channel!!!👍 $432 in profits with a 5% entry and a $1000 deposit! ACCESS TO MANUAL TRADING for 70usdt/month 👉 Get dozens of signals like these daily! Subscribe now >>> t.me/ProphetaAdmin_bot Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #trading#buyeth#CryptoSignal

Propheta Indicator Signals

@propheta_indicator · Post #23235 · 26.12.2025 г., 07:15

👆 Propheta living up to its name yet again 🔮 #SPKUSDT has achieved 9th TP in 14 hours in our VIP HTL channel! You could've earned $304 with a 5% entry and a $1000 deposit! Feels good to be a Propheta VIP, man... 🏖ACCESS TO MANUAL TRADING for 70usdt/month 💰Turn data into gains with Propheta AI Analyzer: deep AI analysis spots trends with surgical precision, tweaks in seconds to your goals, and pair hunting pumps your trading to the next level — this is the evolution of the game! GET THE ACCESS Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #AItrading#cryptoexchange#bitcoinnews

Propheta Indicator Signals

@propheta_indicator · Post #23227 · 22.12.2025 г., 10:08

👀 Well, would you look at that! 👆 #SPKUSDT reached 9th TP in under 58 minutes! Signal from our VIP HTL channel! Easy $303 with a 5% entry and a $1000 deposit! ACCESS TO MANUAL TRADING for 70usdt/month 👉 Looking at those reports and can't believe what you're seing? Go to our reports channel and audit us! @propheta_reports Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #cryptocurrency#tradingindicator#bitcoinnews

CryptoBull_360™

@cryptobull_360 · Post #49445 · 23.04.2026 г., 06:21

#SPK did 114% massive rally by breaking out from the bottom accumulation zone along with #Upbit SPOT listing!! Congrats traders who bought on time!! $SPK #SPKUSDT https://x.com/CryptoBull_360/status/2046058078567845980?s=20