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

Резултати

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

Пребарај: #axs

当前筛选 #axs清除筛选
Coin Sonar

@CoinSonar · Post #244244 · 18.04.2026 г., 15:22

#AXS | Volume spike (USDT PAIR) 12 times the average volume 166.56K USDT traded in 15 min └Buying vol: 123.61K USDT 🟢 Boost score: 3/10 24h Vol: 1.28M USDT (Binance) Price: 1.154 (-2.2% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244048 · 18.04.2026 г., 07:50

#AXS | Volume spike (USDT PAIR) 182 times the average volume 162.93K USDT traded in 1 min └Selling vol: 126.26K USDT 🔴 Boost score: 1/10 24h Vol: 1.28M USDT (Binance) Price: 1.217 (-2.2% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243675 · 17.04.2026 г., 13:27

#AXS | Volume spike (USDT PAIR) 9 times the average volume 130.07K USDT traded in 15 min └Buying vol: 71.08K USDT 🟢 Boost score: 5/10 24h Vol: 1.28M USDT (Binance) Price: 1.207 (-2.2% in 24h)

Hashtags

🚀🚀 Another massive profit made in Premium Group and this time it is#AXS/USDT which crossed All the Profit Targets for an humongous gain of 99% 🗨Contact @futurechief to enter the Binance Futures/Bybit/Kucoin/OKX Premium Signal Group & Receive daily high quality signals by being in the Premium Group

Hashtags

Pro Analysis

@proanalysistrader · Post #28467 · 12.02.2025 г., 17:04

#AXS/USDT analysis : #AXS is retracing towards the 200 EMA and is expected to retest this level before continuing its bearish momentum. The current level presents a favorable opportunity for a long entry, with the swing high resistance level identified as the target. TF : 4H Entry : $4.444 Target : $4.990 SL : $4.160

Hashtags

American Crypto©

@americancryptotrading · Post #27228 · 24.04.2025 г., 10:51

🇺🇸#AXS/USDT is currently heading towards the descendingresistance line on the daily timeframe💁‍♂️ A strong upward impulse is likely🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27039 · 04.11.2024 г., 18:14

🇺🇸#AXS/USDT is forming the descendingtriangle on weekly timeframe🧐 Bullish case🚀 American Crypto©

Hashtags

Free Crypto Signals (Profitable Zone)

@btctradingclub · Post #26804 · 19.01.2026 г., 22:11

🚀🚀 315% Profit on #AXS/USDT for our Premium Members on Binance Futures/Bybit/OKXX/Kucoin/Bitget ✅✅ All target completed 👁‍🗨Contact @primemod to enter the Premium Group for high quality SPOT & FUTURES Signals

Hashtags

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