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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #309 · 2 фев.

Метод строки split() разделяет строку на несколько строк по указанному символу >>> "a_b_c".split('_') ['a', 'b', 'c'] Можно указать максимальное количество разделений >>> "a_b_c".split('_', 1) ['a', 'b_c'] Или резать с другой стороны с помощью rsplit() (right split) >>> "a_b_c".rsplit('_', 1) ['a_b', 'c'] А что будет если оставить аргументы пустыми? >>> "a_b_c".split() ['a_b_c'] Получаем список с одним элементом, потому что по умолчанию используется пробельный символ. >>> "a b c".split() ['a', 'b', 'c'] То есть это равнозначно такому вызову? >>> "a b c".split(" ") ['a', 'b', 'c'] Кажется да, но нет! Давайте попробуем добавить пробелов между буквами >>> "a b c".split(" ") ['a', '', '', 'b', '', '', 'c'] И вот картина уже не так предсказуема 😕 А вот что будет по умолчанию >>> "a b c".split() ['a', 'b', 'c'] Всё снова красиво! 🤩 По умолчанию в качестве разделителя используется любой пробельный символ, будь то табуляция или новая строка. Включая несколько таких символов идущих подряд. А также игнорируются пробельные символы по краям строки. >>> "a\t b\n c ".split() ['a', 'b', 'c'] Аналогичный способ можно собрать с помощью регулярного выражения. Но пробелы по краям строки придется обрабатывать дополнительно. >>> import re >>> re.split(r"\s+", ' a b c '.strip()) ['a', 'b', 'c'] Здесь тоже можно указать количество разделений >>> re.split(r"\s+", 'a b c', 1) ['a', 'b c'] А что если мы хотим написать красиво, то есть split() без аргументов, но при этом указать количество разделений? В этом случае первым аргументом передаём None >>> "a\n b c".split(None, 1) ['a', 'b c'] Данный метод не учитывает строки с пробелами, взятые в кавычки 'a "b c" '.split() ['a', '"b', 'c"'] Но для таких случаев есть другие способы. #tricks#basic

Резултати

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

Пребарај: #jizzakh

当前筛选 #jizzakh清除筛选
EKOLOG.UZ| ENG

@ekologuzenglish · Post #12437 · 19.04.2026 г., 04:04

#Jizzakh#Green_School 🌿 Under the Public Association “Ekolog” of Uzbekistan, the “Green School Council” of Jizzakh region organized an environmentally significant 💚 Plogging activity (picking up litter while walking or running). Coordinators and members of the council took part in the event. 📍 During the campaign, Sharof Rashidov main street and surrounding areas were cleaned of waste. Such environmental initiatives not only improve the urban environment but also play an important role in raising ecological responsibility among young people. 🔍 The main goal of the event was to increase environmental awareness among the population and to promote a sustainable lifestyle, as well as a more conscious attitude toward a clean and green environment among youth. ☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.

StartupBase

@startupbaseuz · Post #5982 · 29.07.2025 г., 11:21

🚀3 Startups Funded at “Investor Day” in Jizzakh Jizzakh hosted “Investor Day” — a platform for startups from Jizzakh, Tashkent, and Syrdarya regions to pitch their ideas directly to investors. 💡 A total of 11startups presented their projects in front of leading investors, including: AloqaVentures, IT Park Ventures, Startup Garage, Sarmo Ventures, and independent business angels. 🤝 The B2B meeting format also allowed participants to receive practical feedback from top experts: • Shahzod Narzullayev (IT Park Ventures) • Davron Parmonov (AloqaVentures) • Muhammad Khalil (Startup Garage) • Abdul Sharafiy (Sarmo Labs) 📈 Over 700 young participants attended the event — for many, it became a powerful source of inspiration. 🏆 Investment deals from AloqaVentures: • Maqsaddosh — $20,000 • Medmap — $20,000 • Mom+ — $20,000 Such regional events play a key role in building the innovation ecosystem and connecting local founders with active investors. #StartupUzbekistan#InvestorDay#Jizzakh#VentureFunding#TechEcosystem

EKOLOG.UZ| ENG

@ekologuzenglish · Post #11357 · 28.01.2026 г., 09:59

⚠️ ECOLOGICAL VIOLATIONS ARE BEING IGNORED! As of January 25, 2026, the activities of LLC “Ko‘mir Ta’minoti” of Jizzakh region, particularly the Dashtabod coal storage facility, continue to cause direct harm to local residents, while grossly violating environmental and sanitary regulations. Unfortunately, this company continues to operate without complying with basic environmental standards. Coal dust, air pollution, and the absence of protective measures have become a daily problem for the surrounding community. These violations have been reported several times on our Telegram channel. 📌 Most concerning is the fact that: Since December 2025, residents and public representatives have repeatedly submitted official complaints to the responsible authorities, yet: — no effective action has been taken, — no fines have been imposed, — no official explanations have been provided to the public. ❗️ This raises serious questions: Why are environmental violations going unpunished? Why is public health being ignored? We, as citizens and representatives of civil society, demand an urgent review of this situation and request written, official information regarding: — the identified violations, — the measures taken in response, — the fines imposed (or not imposed) on this enterprise. 🟢 Environmental protection is not a formality. 🟢 It is a matter of human health, children’s future, and the right to a clean environment. Responsible authorities must not remain silent. The public will continue to closely monitor this case. #Ecology #EnvironmentalViolations #Dashtabod #Jizzakh #PublicHealth #PublicOversight☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.

Bahodir_Schastlivchik

@bahodir_schastlivchik · Post #1894 · 08.06.2025 г., 18:11

🇺🇿🚀 BMB AGRO PLUS: ғоядан — экспортгача! Эсингизда бўлса, яқиндагина Жиззахда BMB Agro Plus — инновацион корҳонамизнинг очилиши бўлиб ўтган эди. Ушбу лойиҳа маҳсулотни шок ва акустик музлатиш технологияси асосида чуқур қайта ишлаш учун яратилган. 📦 Бугун лойиҳа амалий босқичга ўтмоқда: илк юқори технологияли музлатилган маҳсулот партияси Европага экспорт қилинди! ☝Бу — BMB Holding стратегиясининг амалдаги ифодаси: етиштириш, қайта ишлаш ва экспорт қилиш. 🇺🇿Ўзбек даласидан — 🇪🇺Европа супермаркетларининг расталаригача! Ва бу — фақатгина бошланиши. 🔹 BMB Holding — келажак сари дадил одимламоқда! #BMBHolding#BMBAgroPlus#Jizzakh#MadeInUzbekistan#UzAgroExport#АгроЭкспорт#Инновации#ШоковаяЗаморозка#AgroTech#ExportReady#AgroFuture#УзбекистанЕвропа#BMBданЕвропага @bahodir_schastlivchik