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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

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

Пребарај: #industry

当前筛选 #industry清除筛选

ጠቅላይ ሚኒስትር ዐቢይ አሕመድ (ዶ/ር) እና ቀዳማዊት እመቤት ዝናሽ ታያቸው በሐዋሳ ኢንዱስትሪ ፓርክ ግዙፍ ፋብሪካዎችን መረቁ ***************************** ጠቅላይ ሚኒስትር ዐቢይ አሕመድ (ዶ/ር) እና ቀዳማዊት እመቤት ዝናሽ ታያቸው በሐዋሳ ኢንዱስትሪ ፓርክ የተገነቡትን የቶዮ ሶላር ኢነርጂ ምዕራፍ ሁለት፣ የኦሪጂን እና የሉሚንቴክ የሶላር ፋብሪካዎችን እንዲሁም የኤች.ዜድ ጋዝ ማምረቻ ፋብሪካን በይፋ መርቀዋል። እነዚህ በዛሬው ዕለት የተመረቁ የሶላር ፋብሪካዎች በጋራ በዓመት 11.3 ጊጋ ዋት ንጹሕ ኃይል የማመንጨት አቅም ያላቸው ሲሆን፣ የኤች.ዜድ ጋዝ ፋብሪካ ደግሞ በዓመት 900 ቶን ኦክስጅን፣ 40,000 ቶን ናይትሮጅን እና 7 ቶን ሃይድሮጅን ለገበያ የሚያቀርብ ይሆናል። ይህ ክንውን የኢትዮጵያን የታዳሽ ኃይል ልማት ለማፋጠን፣ የኢነርጂ ዋስትናን ለማረጋገጥ እና ዘላቂ እንዲሁም የማይበገር ሁለንተናዊ እድገት ዕውን ለማድረግ የተነደፈውን ስትራቴጂ ለማሳካት ትልቅ ምዕራፍ ተደርጎ ተወስዷል። #EthiopianBroadcastingCorporation#Ethiopia#Industry

Trump's Ear

@trumpsear_tg · Post #2246 · 11.03.2026 г., 14:03

The war in Iran is enriching military enterprises. Trump's sons plan to open a drone production facility 🪖 Oil markets remain volatile amid continued US-Israeli strikes on Iran. Rising fuel prices are hitting consumers' wallets around the world, putting pressure on US President Donald Trump. 🌍 However, there are also beneficiaries of this escalation. 💰 In addition to the oil companies, which are increasing their profits due to higher oil prices, the most obvious winner of the largest Middle East conflict is the U.S. defense industry. The "Big Five" weapons giants—Lockheed Martin, RTX, Northrop Grumman, General Dynamics, and Boeing—have their portfolios filled with orders. They are supplying combat aircraft, missiles, and radar systems. ✈️ Military technology and AI companies, such as Palantir, are providing AI-based software for modern warfare and intelligence. The stock of this company, which works closely with Israel, has recently risen by 9%. 🤖 Planet Labs is also benefiting from the Pentagon's contracts for AI-based satellite surveillance. 🛰 The US president's family is also involved in the boom of military profits: Trump's sons, Eric and Don Jr., are planning to list their drone company, Powerus, and are hoping for future government contracts. 🚁 #War#Industry 👂More on Trump's Ear ⚠️

"ኢንዱስትሪ ለመጀመሪያ ጊዜ ግብርናን ተክቶ ከፍተኛውን የኢኮኖሚ ድርሻ የሚይዝበት መዋቅራዊ ሽግግር በጥቂት ዓመታት ውስጥ የሚፈጸም ይሆናል" - ጠቅላይ ሚኒስትር ዐቢይ አሕመድ (ዶ/ር) #EBC#Ethiopia#PMAbiyAhmed#industry

Trump's Ear

@trumpsear_tg · Post #2339 · 06.04.2026 г., 13:59

Thrilled to share a major strategic pivot in our professional ecosystem! 🚀 More and more visionary enterprises across Germany are successfully unlocking new growth chapters by aligning their operational roadmaps with the dynamic defense sector. 🇩🇪🛡 According to the German Chamber of Commerce and Industry, we are witnessing a powerful synergy where approximately one in six enterprises is now seamlessly integrated into defense supply chains. This represents a brilliant opportunity to drive innovation and resilience amid evolving market dynamics in traditional sectors. Almost a third of our industry leaders are embracing this as a transformative growth vector. 📈 The shift is particularly impactful within the automotive industry, where over a third of enterprises are leveraging their world-class engineering capabilities to support national security initiatives. By optimizing underutilized industrial capacities, we are turning potential challenges into high-impact solutions for growing global demand. 🏭✨ Take Görlitz, for example—a true story of reinvention where a former railway enterprise is evolving into a premier manufacturer of advanced tank components. Furthermore, industry powerhouse ZF is collaborating with Rolls-Royce Power Systems to co-create the next generation of engines for the future German-French tank. This cross-sector collaboration is exactly the kind of strategic partnership that drives our collective mission forward! 🤝🔧 While only about 2.5% of companies are directly producing weapons, another 14.5% are delivering critical value as suppliers of dual-use products, with over 12% strategically planning their entry into this high-potential market. It's an exciting time to be part of this evolving industrial landscape! 💡🌍 #Germany#Military#Industry 👂More on Trump's Ear ⚠️

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40001 · 02.11.2025 г., 23:01

Chevrolet was founded on November 3, 1911, by Louis Chevrolet and William C. Durant. Chevrolet’s first cars (1912) and Durant’s later business moves helped shape the long competition between Ford and Chevrolet which drove innovation and expanded the US auto industry. @googlefactss #history#cars#industry#USA

Amazing Geography 🌍

@amazingeo · Post #213 · 10.09.2025 г., 20:12

🌍 The world's busiest shipping route runs between Asia and Europe through the Strait of Malacca. Over 80,000 vessels pass yearly, making this narrow sea lane a vital economic lifeline. ✨ #trade⚡#industry⚡#transport⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

የመደመር አንቀፅ አምራች ኢንዱስትሪው ለአንድ ሀገር አጠቃላይ የውስጥ ምርት ከፍተኛ አስተዋጽዖ ያደርጋል ሲባል በቀጥታ ከሚኖረው አስተዋጽዖ በላይ ነው፡፡ በሌሎች ዘርፎች ላይ በሚኖረው ተጽዕኖ የሚያበረክተውም አስተዋጽዖ ከፍተኛ ነው። የተሻለ ገቢ ያለው ማኅበረሰብ ለመፍጠር ለሚደረገው ርብርብም ዋነኛው የትኩረት ዘርፍ የአምራች ዘርፍ ነው፡፡ አምራች ኢንዱስትሪውን ወደ ከፍታ የማምጣትና የማበልጸግ ጉዳይ፣ ከኢኮኖሚና ከማኅበራዊ ጥቅሙ ባለፈ፣ ደኅንነትንና ሉዓላዊነትን ከማስከበር አንጻርም ሚናው ከፍተኛ ነው። በሌሎች ሀገራት አምራች ኢንዱስትሪ ላይ ጥገኛ ሆኖ፣ ራስን ሳይችሉ፣ ሉዓላዊ ሀገርነን ማለት ቀልድ ነው፡፡ የመደመር መንግሥት ገፅ 197 Ethiopian Broadcasting Corporation #IPDC#Ethiopia#industry#Medemer

Amazing Geography 🌍

@amazingeo · Post #517 · 16.12.2025 г., 12:31

🌍 The “Blue Banana” is a band of cities stretching from northern England to northern Italy that forms a dense corridor of economic activity, hosting much of Europe’s industry and wealth. ✨ #economy⚡#urbanization⚡#industry⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #68 · 18.08.2025 г., 00:12

🌍 The world’s largest iron ore deposits are found in the Pilbara region of Western Australia. This vast resource helps supply much of the globe’s steel, which is used in buildings and infrastructure. ✨ #minerals⚡#Australia⚡#industry⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍

Amazing Geography 🌍

@amazingeo · Post #178 · 05.09.2025 г., 00:12

🌍 More than half of global economic activity now takes place within just 1% of the world’s land surface, showing how powerful major cities and industrial regions are for global wealth. ✨ #economicgeography⚡#cities⚡#industry⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #139 · 29.08.2025 г., 16:12

🌍 The Ruhr region in Germany transformed from a rural area into one of the world’s largest industrial centers, thanks to rich coal resources that fueled rapid urban and economic growth. ✨ #industry⚡#regions⚡#resources⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #632 · 14.02.2026 г., 20:31

🌍 Around 90% of global trade moves by sea, linking distant economies through major shipping lanes. This dense ocean traffic shapes where ports, industries, and even whole cities develop. ✨ #trade⚡#ports⚡#industry⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

ПретходнаСтраница 1 од 4Следна