@WorldNews · Post #73769 · 01.04.2026 г., 11:05
Russia's largest oil company's net income drops by 73% in 2025 [Read FullArticle] @WorldNews#OilIndustry#RussiaNews#EarningsDrop
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
Пребарај: #oilindustry
@WorldNews · Post #73769 · 01.04.2026 г., 11:05
Russia's largest oil company's net income drops by 73% in 2025 [Read FullArticle] @WorldNews#OilIndustry#RussiaNews#EarningsDrop
@venanalysis · Post #2035 · 21.07.2025 г., 19:36
📰 NEWS | Venezuela: Oil Industry Navigates Sanctions, Places 90 Percent of Exports to China The Venezuelan oil industry has managed to maintain production and export levels in the wake of renewed US sanctions. State oil company PDVSA is now selling 90% of its crude to China. However, the Maduro government continues to court foreign investment to boost the energy sector recovery. Follow the link for the full report: https://venezuelanalysis.com/news/venezuela-oil-industry-navigates-sanctions-places-90-percent-of-exports-to-china/ #Venezuela#OilIndustry#China#PDVSA
@venanalysis · Post #2238 · 10.01.2026 г., 23:18
📰 NEWS | Trump Administration Hosts Oil Executives, Insists on Sweeping Venezuelan Oil Concessions The Trump administration hosted global oil executives and reiterated its claims to exercise control over present and future Venezuelan oil sales. Washington has maintained its pressure to impose conditions on the acting government in Caracas, with naval forces seizing a fifth oil tanker on Friday. Follow the link to read our report: https://venezuelanalysis.com/news/trump-administration-hosts-oil-executives-insists-on-sweeping-venezuelan-oil-concessions/ #OilIndustry#TrumpAdministration#Chevron#Venezuela
@venanalysis · Post #1897 · 04.03.2025 г., 19:50
🚨NEWS | Venezuela: US Shrinks Chevron Wind-Down Period to 30 Days Following ‘Crazy Cubans’ Pressure The Trump administration ordered the oil giant to cease its activities in Venezuela by April 3. The ramped-up economic sanctions will immediately affect the country’s oil output and potentially trigger renewed inflation. 🔗 Read the full report here: https://venezuelanalysis.com/news/venezuela-us-shrinks-chevron-wind-down-period-to-30-days-following-crazy-cubans-pressure/ #Sanctions#Chevron#OilIndustry#Trump
@venanalysis · Post #2244 · 14.01.2026 г., 21:47
📰 NEWS | Chinese Supertankers Turn Back as US Moves Ahead to Extort Venezuelan Crude With Washington stepping up its naval blockade, two Chinese-flagged supertankers turned back when headed to load Venezuelan crude. Commodities traders Vitol and Trafigura have begun to move Venezuelan oil. Trump officials insist that the sales proceeds will be deposited in US accounts. Read our report: https://venezuelanalysis.com/news/chinese-supertankers-turn-back-as-us-moves-ahead-to-extort-venezuelan-crude/ #OilIndustry#Sanctions#China#TrumpAdministration
@venanalysis · Post #2237 · 10.01.2026 г., 17:33
📹 VIDEO | Trump’s Oil Heist in Venezuela Historian Steve Ellner and Venezuelanalysis' Ricardo Vaz joined Sharmini Peries on theAnalysis.News to gather a historical perspective on the Venezuelan oil industry and how US imperialist interests have played a role. Watch the video: https://venezuelanalysis.com/video/trumps-oil-heist-in-venezuela/ #Venezuela#OilIndustry#History#Trump
@venanalysis · Post #2245 · 16.01.2026 г., 03:27
📹 VIDEO | Trump–Rodríguez Oil Talks Test Venezuela’s Sovereignty Venezuelanalysis founder and contributing editor Gregory Wilpert joined Sharmini Peries on theAnalysis.News to discuss US claims over the Venezuelan oil industry and the broader context of the struggle for sovereignty. Follow the link to watch: https://venezuelanalysis.com/video/trump-rodriguez-oil-talks-test-venezuelas-sovereignty/ #OilIndustry#Venezuela#NationalSovereignty#History
@venanalysis · Post #1602 · 14.06.2024 г., 23:47
Over the past century, oil has played an outsized role in Venezuela. It is no wonder that the United States, in its neverending regime-change plots, chose to target this crucial sector with crushing sanctions. Our latest video examines the crude reality of coercive measures against the Venezuelan oil industry. #Venezuela#Sanctions#USPolicy#VenezuelanOil#OilIndustry https://youtu.be/lwcB4Z9jwGA