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

Резултати

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

Пребарај: #javiermilei

当前筛选 #javiermilei清除筛选
SIN LÍNEA MX (OFICIAL)

@SINLINEAMXnoticias · Post #31134 · 29.03.2026 г., 00:13

¡Escándalo! 🤯 🔴#Novell, la mente detrás de $LIBRA, se habría encargado personalmente de pagar "fajos" de billetes de una financiera a #JavierMilei (@JMilei) 💰🇦🇷🗳️ https://revistaelpolitico.com/internacional/audios-senalan-pagos-efectivo-milei-caso-libra/

SIN LÍNEA MX (OFICIAL)

@SINLINEAMXnoticias · Post #31129 · 28.03.2026 г., 20:34

¡Escándalo! 🤯 🔴#Novell, la mente detrás de $LIBRA, se habría encargado personalmente de pagar "fajos" de billetes de una financiera a #JavierMilei (@JMilei) 💰🇦🇷🗳️ https://revistaelpolitico.com/internacional/audios-senalan-pagos-efectivo-milei-caso-libra/

SIN LÍNEA MX (OFICIAL)

@SINLINEAMXnoticias · Post #31051 · 25.03.2026 г., 15:37

😂¡Ahí no más para que se enojen los prianistas! ‼️La presidenta #ClaudiaSheinbaum es la jefa de Estado mejor evaluada de Latinoamérica, al tener 72.3 por ciento de aprobación, por encima de personajes como #NayibBukele, #JavierMilei y otros. #MañaneraDelPueblo

Marx21.it

@marx21news · Post #9160 · 07.11.2025 г., 14:17

Argentina tra ingerenze e sovranità sotto attacco Le elezioni legislative del 26 ottobre segnano una svolta profonda: La Libertad Avanza di Milei conquista la maggioranza relativa, ma in un clima di astensione record e crescente disillusione popolare. Dietro i numeri si nasconde un quadro inquietante: il peso crescente di Washington e Donald Trump sugli equilibri politici ed economici argentini. Promesse di miliardi in aiuti, pressioni finanziarie e persino interferenze dirette nella campagna elettorale delineano un nuovo capitolo di dipendenza e perdita di sovranità. Il voto all’ONU contro la risoluzione che chiedeva la fine del blocco a Cuba è il simbolo di questa deriva: per la prima volta dopo trent’anni, Buenos Aires si allinea con Washington, rompendo una tradizione di indipendenza diplomatica e solidarietà latinoamericana. Mentre il governo canta vittoria, cresce il disagio sociale, crollano salari e imprese, e intere famiglie scivolano nella povertà. La sfida che si apre ora non è solo parlamentare, ma nazionale: difendere le risorse del Paese, ricostruire il lavoro, riaffermare la dignità di un popolo che rifiuta di essere colonia economica o politica di nessuno. Come scrive Giulio Chinappi, la vera domanda è: Chi comanda oggi in Argentina, e per conto di chi? #Argentina#Sovranità#Elezioni2025#JavierMilei#DonaldTrump#Cuba#Ingerenze#AmericaLatina#Peronismo#GiulioChinappi#PoliticaInternazionale https://www.marx21.it/internazionale/largentina-tra-ingerenze-e-sovranita-sotto-attacco/

Venture Village Wall 🦄

@venturevillagewall · Post #4177 · 18.02.2025 г., 01:00

Major Crypto Transactions Reported Today 🚨 Massive Transfers Alert: - 50M #MELANIA ($63M) from unknown wallet to unknown wallet. Details - 16M #XLM ($5.26M) shifted between #Coinbase deposits and withdrawals. Details - 164M #USDT ($164.3M) sent to Tether Treasury. Meanwhile, Argentina's President Javier Milei denies promoting a crypto scam, stating, "I didn't promote it, I shared it." Source #Crypto#MELANIA#XLM#USDT#Coinbase#Argentina#JavierMilei#WhaleAlert#Tether#Bitcoin#Singapore#DBS#CryptoRegulation#CryptoScam#Blockchain#Finance#Transactions#Wallets#Bullish#Treasury

Venture Village Wall 🦄

@venturevillagewall · Post #4171 · 17.02.2025 г., 07:00

Argentina's President Accused in LIBRA Scandal Argentinian President Javier Milei faces fraud allegations linked to meme token LIBRA amidst a legal action led by former central bank chief. Kelsier Ventures CEO Hayden Davis claims Milei's actions triggered a crash in LIBRA's price, while insider selling reportedly occurred prior to Milei's tweet removal. Investigations are ongoing as accusations of insider knowledge circulate among influencers and projects involved. For more details, read the full report here. #LIBRA#Argentina#Crypto#MemeTokens#Fraud#JavierMilei#Kelsier#KIPProtocol#InsiderTrading#LegalIssues#HaydenDavis#Volatility#Investigation#MarketCrash#Blockchain#CryptoScandal#Influencers#Jupiter#Meteora#Finance#VC

Venture Village Wall 🦄

@venturevillagewall · Post #4164 · 16.02.2025 г., 04:00

Argentina Investigates LIBRA Token Misconduct Argentina's President Javier Milei calls for an investigation into LIBRA token's rug pull, requesting the Anti-Corruption Office's involvement to assess potential misconduct by government members. Findings will be forwarded to the court. Opposition considers impeachment due to the incident. Links: Statement, Watch, Details. #LIBRA#Crypto#Argentina#investigation#rugpull#president#JavierMilei#impeachment#KIPProtocol#AntiCorruption#fundflow#temporalanalysis#MELANIA#ENRON#Solana#ETF#Bitcoin#adoption#blockchain#corruption#misconduct