@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 #83 · 11 мај
У строки в Python есть два очень похожих метода. На столько похожих что кажется они делают одно и тоже. Это метод isdigit() и isnumeric() Давайте посмотрим зачем нам два одинаковых метода? И так ли они одинаковы? Очевидно что isdigit() говорит нам, состоит ли строка только из чисел 0-9 >>> '12'.isdigit() True >>> '12x'.isdigit() False >>> '-12'.isdigit() False >>> '12.5'.isdigit() False Можно предположить что isnumeric() делает более глубокий анализ и распознаёт в строке float или отрицательное число. >>> '15'.isnumeric() True >>> '-15'.isnumeric() False >>> '15.2'.isnumeric() False Нет, всё так же как и с другим методом. В чем же тогда разница? Для начала посмотрим следующие примеры: >>> '5'.isdigit(), '5'.isnumeric() # Обычная цифра 5 # True, True >>> '꧕'.isdigit(), '꧕'.isnumeric() # Яванская 5 # True, True >>> '෩'.isdigit(), '෩'.isnumeric() # Синхала 3 # True, True >>> '৩'.isdigit(), '৩'.isnumeric() # Бенгальская 3 # True, True >>> '༣'.isdigit(), '༣'.isnumeric() # Тибетская 3 # True, True >>> '³'.isdigit(), '³'.isnumeric() # 3 верхний индекс (степень) # True, True >>> '𝟝'.isdigit(), '𝟝'.isnumeric() # Математическая двойная 5 # True, True >>> '๔'.isdigit(), '๔'.isnumeric() # Тайская 4 # True, True >>> '➑'.isdigit(), '➑'.isnumeric() # 8 в круге # True, True А теперь примеры в которых, по мнению Python, результаты не равны >>> '¾'.isdigit(), '¾'.isnumeric() # дробь три четверти # False, True >>> '⅕'.isdigit(), '⅕'.isnumeric() # дробь одна пятая # False, True >>> '𒐶'.isdigit(), '𒐶'.isnumeric() # клинопись 3 # False, True >>> '三'.isdigit(), '三'.isnumeric() # 3 из унифицированной идеограммы # False, True >>> '⑩'.isdigit(), '⑩'.isnumeric() # цифра 10 в круге # False, True >>> 'Ⅳ'.isdigit(), 'Ⅳ'.isnumeric() # Римская 4 # False, True >>> '𑇪'.isdigit(), '𑇪'.isnumeric() # Сенегальская архаическая 10 # False, True >>> '𐌢'.isdigit(), '𐌢'.isnumeric() # Этрусская цифра 10 # False, True >>> 'ↂ'.isdigit(), 'ↂ'.isnumeric() # Римская цифра 10000 # False, True >>> '〇'.isdigit(), '〇'.isnumeric() # Символ ККЯ ноль # False, True Получается, что isdigit() говорит нам, является ли символ десятичной цифрой или спецсимволом, имеющим цифирное значение после преобразования. В свою очередь isnumeric() включает все дополнительные символы юникода которые имеют отношения к числовым и цифровым представлениям. Ну и пара примеров в которых в обоих случаях символ не является числом, это эмодзи. >>> '🕙'.isdigit(), '🕙'.isnumeric() # эмодзи 10 часов # False, False >>> '7️⃣'.isdigit(), '7️⃣'.isnumeric() # эмодзи 7 # False, False Также есть еще один дополнительный и весьма полезный метод isdecimal(). Он нам сообщает, можно ли из указанного символа сделать простую десятичную цифру. То есть сработает ли метод int(x) >>> '෩'.isdecimal(), int('෩') # Синхала 3 # True, 3 >>> '➑'.isdecimal(), int('➑') # 8 в круге # False, ValueError Какие выводы? 🔸 При определении цифры в строке isdigit() подходит лучше чем isnumeric(), но оба не гарантируют успешную конвертацию в int 🔸 Для однозначного определения возможности преобразования строки в int лучше подходит метод isdecimal() 🔸 Для однозначного определения символов 0...9 лучше использовать regex Полный список символов юникода которые определяются как numeric #basic
Hashtags
Пребарај: #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