@WorldNews · Post #74345 · 24.04.2026 г., 14:49
Trump cannot expel NATO members over Iran stance, alliance official says [Read FullArticle] @WorldNews#NATO#Iran#TrumpAdministration
Hashtags
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
Пребарај: #trumpadministration
@WorldNews · Post #74345 · 24.04.2026 г., 14:49
Trump cannot expel NATO members over Iran stance, alliance official says [Read FullArticle] @WorldNews#NATO#Iran#TrumpAdministration
Hashtags
@WorldNews · Post #73979 · 09.04.2026 г., 00:34
Trump administration signals it is mulling NATO withdrawal after Iran war [Read FullArticle] @WorldNews#NATO#TrumpAdministration#IranWar
@WorldNews · Post #74400 · 27.04.2026 г., 03:24
Trump says Iran can phone if it wants to talk; Iranian minister heads to Russia [Read FullArticle] @WorldNews#IranNews#TrumpAdministration#InternationalRelations
@WorldNews · Post #74367 · 25.04.2026 г., 14:19
Trump cannot expel NATO members over Iran stance, alliance official says [Read FullArticle] @WorldNews#NATO#TrumpAdministration#IranPolicy
@venanalysis · Post #1891 · 26.02.2025 г., 21:08
🎙PODCAST | The Venezuelanalysis Podcast Episode 34: Opposing Trump’s Fascist Crackdown on Venezuelan Migrants The Trump administration has wasted no time in targeting Venezuelan migrants, with a criminalizing discourse and ongoing human rights violations. More than 100 have been sent to Guantánamo. In VA’s latest podcast, José Luis Granados Ceja and Ricardo Vaz analyze these developments and their impact on US-Venezuela relations. Watch the full episode here: https://youtu.be/C8CzENqGADs?si=c6BKxl6A8re50nR6 #TrumpAdministration#Migration#HumanRights
@venanalysis · Post #1832 · 15.12.2024 г., 20:09
The outgoing Biden administration weighs withdrawing Chevron’s license. In contrast, lobbyists urge Trump to leverage sanctions to US advantage, with the Jack Gordon Institute laying out an "America-first sanctions policy." Venezuela's oil sector remains heavily constrained by US coercive measures, with output slightly decreasing in November. Read our latest report: https://venezuelanalysis.com/news/venezuelan-oil-output-recedes-as-washington-threatens-new-sanctions/ #Venezuela#Sanctions#TrumpAdministration#Oil
@venanalysis · Post #2038 · 25.07.2025 г., 02:17
📰 NEWS | Trump Administration Reverses Course, Allows Restart of Chevron Operations in Venezuela In an unexpected U-turn, the Trump administration has reportedly allowed Chevron to resume oil drilling and exporting operations in Venezuela. The new specific license might see Chevron and majority partner PDVSA sell their respective crude shares separately. US foreign policy hardliners have been pitted against MAGA advocates concerning sanctions and Chevron's role in Venezuela. Read our report: https://venezuelanalysis.com/news/trump-administration-reverses-course-allows-restart-of-chevron-operations-in-venezuela/ #Chevron#Venezuela#Sanctions#TrumpAdministration
@WorldNews · Post #74154 · 16.04.2026 г., 08:04
Vance calls end of Ukraine aid 'one of the proudest' achievements of Trump administration [Read FullArticle] @WorldNews#UkraineAid#TrumpAdministration#JDVance
@venanalysis · Post #2059 · 10.08.2025 г., 04:35
📰 NEWS | Venezuela Decries $50M ‘Narcoterrorism’ Bounty on Maduro as ‘Ridiculous Smokescreen’ The Venezuelan government has blasted the US' decision to raise a "narcoterrorism" bounty against President Nicolás Maduro to $50 million. Caracas labeled the move a "ridiculous smokescreen" as part of baseless accusations to further regime-change narratives. Read the report: https://venezuelanalysis.com/news/venezuela-decries-50m-narcoterrorism-bounty-on-maduro-as-ridiculous-smokescreen/ #NicolasMaduro#NarcoTerrorism#Venezuela#TrumpAdministration
@venanalysis · Post #1917 · 22.03.2025 г., 18:12
📰 NEWS | Venezuela: Chevron Lobbies for Extension as Trump Weighs New Sanctions Scenario Texas-based corporation Chevron could be granted an additional sixty days to wind down its operations in Venezuela. According to sources, the Trump administration is also considering a new sanctions policy favoring US corporations and imposing penalties on other foreign actors. Read our report: https://venezuelanalysis.com/news/venezuela-chevron-lobbies-for-extension-as-trump-weighs-new-sanctions-scenario/ #Oil#Sanctions#Chevron#TrumpAdministration
@venturevillagewall · Post #4292 · 03.03.2025 г., 04:00
Sacks Sells Crypto Holdings Amid Review David Sacks, White House AI and crypto czar, sold all his Bitcoin, Solana, and Ethereum holdings post-Trump's inauguration. This move precedes a government ethics review with plans for a full holdings update. More details: FT. #AI#Crypto#VC#Bitcoin#Ethereum#Solana#DavidSacks#CraftVentures#TrumpAdministration
@venanalysis · Post #2217 · 23.12.2025 г., 19:23
📹 VIDEO | Trump Ramps Up Economic Terrorism Against Venezuela The Trump administration is ramping up its economic terrorism against Venezuela, with new sanctions and blatant acts of piracy. For the Venezuelan people, resistance is not optional. Will international allies step up? Watch our video to learn more. #Venezuela#Sanctions#TrumpAdministration#MultipolarWorld