TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #84 · 13 мај

В продолжение прошлого поста про цифры в мире строк. Почему методы isdigit() и isnumeric() не определяют в строке float и отрицательные значения? Дело в том, что эти методы работают с ЦИФРАМИ, то есть с единичным символом. А строка "-2" или "3.4" это уже ЧИСЛО. То есть не символ а значение, записанное несколькими символами. Все озвученные методы проходятся по каждому символу строки и проверяют их индивидуально. В юникоде есть символы цифр с точками "🄀⒈⒉⒊⒋⒌⒍⒎⒏⒐" Каждая из них это ОДИН СИМВОЛ, поэтому он будет считаться цифрой >>> '⒌'.isdigit(), '⒌'.isnumeric() True, True Но когда мы пишем это выражение в два символа ( 5+точка), то это не работает. >>> '5.'.isdigit(), '5.'.isnumeric() False, False А еще есть такие символы >>> '⑴⑵⑶⑷⑸'.isdigit() True >>> '🄁🄂🄃'.isdigit() True Но они не преобразуются в десятичные цифры >>> '⒈'.isdecimal() False >>> '🄃'.isdecimal() False >>> '⑶'.isdecimal() False #basic

Hashtags

Резултати

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

Пребарај: #h2nomics

当前筛选 #h2nomics清除筛选
Decarbonization in Asia

@decarbanization_asia · Post #2141 · 21.04.2026 г., 11:57

Repost of the publication 🇨🇳Hydrogen notes from China: hydrogen is everywhere #H2nomics#international A final travel note from Igor Chausov and Pavel Melnikov from China — on the role of hydrogen in the country’s energy strategy. 🚌 At a bus stop on the outskirts of Shanghai, a bus with green plates and the words “Fuel Cell” on its side pulls up as part of everyday routine, passengers getting on and off. We observed this not only in megacities but also in many county-level cities across China: hydrogen buses, together with the more widespread electric buses, have largely displaced diesel vehicles. 🚜Beyond buses, a wide range of hydrogen-powered equipment is already operating — either in pilot mode or commercially — on Chinese roads: trucks and trailers mining dump trucks bulldozers water trucks street sweepers garbage trucks warehouse forklifts shunting locomotives 👉 This diversity is supported by the rapid development of hydrogen fuel cells and the expansion of industrial-scale production of these next-generation power systems. 🔌Hydrogen is also used in stationary applications: power supply for remote mining and infrastructure sites autonomous ultra-fast EV charging hubs telecom infrastructure off-grid settlements 🏭 While the chemical industry still largely supplies “grey” hydrogen to transport and other sectors, it is simultaneously launching numerous projects to switch from coal and scarce natural gas to green hydrogen — with expectations of cost reductions driven by cheaper renewables and electrolyzers. 🎯Key takeaway China’s energy strategy avoids binary choices and instead follows a “middle path” (中道, Zhong Dao). 👉 It does not choose between electrification and hydrogen. Instead, it treats hydrogen: as a tool for electrifying industry and transport and as a bridge between the world of “molecules” (chemicals, fuels) and the world of “electrons” (powering transport, industry, and utilities) 📌Bottom line: In China, hydrogen is not an alternative to electrification — it is an integral part of a broader, system-level energy transition.