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 слични објави

Пребарај: #tplink

当前筛选 #tplink清除筛选
XP Digital Lab

@rocchl · Post #8476 · 08.01.2026 г., 08:14

TP-Link 联洲推出 Archer BE670 无线路由器:三频 12000M 带 10GbE 网口 TP-Link 在 CES 2026 推出 Archer BE670 高端家用路由器,采用三频 BE12000 规格,6GHz 与 5GHz 均为 5765Mbps,支持 MLO 多链路操作。机身配备 10GbE、2.5GbE 与多组 1GbE 网口,并具备 USB 3.0 接口,支持 EasyMesh 与 HomeShield 网络安全功能。该产品将在美国上市,售价为 249.99 美元。 标签:#tplink#archerbe670 Created by RocM 官方频道:@rocCHL 官方群组:@roctech 官方合作:@rocmmbot

Chollazo Exprés 🔥 Ofertas y Descuentos

@ChollazoExpres · Post #6097 · 13.04.2026 г., 18:44

👟 ¡Lunes de renovación deportiva y tecnológica! Arrancamos la semana con chollazos irresistibles: el chándal de Adidas para hombre a casi mitad de precio y el repetidor WiFi 6 de TP-Link para que internet llegue a cada rincón de tu hogar. También destacamos la regleta de pared ultra potente con puertos USB-C, la jarra BRITA para disfrutar de agua siempre filtrada y el spray After Sun de Isdin a precio de locura. ¡Y para los más curiosos, un microscopio digital infantil con un 52% de descuento! 📶🔌 👇 Selección del día: 🔥 Adidas Chándal para Hombre por 39,90€ (-47% dto) 🔗https://amzn.to/4sugFfa 🔥 TP-Link RE500X - WiFi 6 Repetidor por 39,90€ (-43% dto) 🔗https://amzn.to/4chQWAI 🔥 Regleta de pared con 5 tomas y 3 USB por 25,72€ 🔗https://amzn.to/4cahPba 🔥 Microscopio Digital para niños por 24,00€ (-52% dto) 🔗https://amzn.to/3Qax8b6 🔥 BRITA Jarra con filtro de agua por 13,90€ (-28% dto) 🔗https://amzn.to/4ciSH0r 🔥 Isdin After Sun Spray por 8,50€ (-52% dto) 🔗https://amzn.to/47Usnsq 🔥 Fokky 5 Bandas Elásticas Musculación por 6,90€ (-46% dto) 🔗https://amzn.to/4t94dD3 #Adidas#TPLink#Brita#OfertasAmazon#AhorroLunes 📲 No te pierdas ni uno, síguenos en directo: 🔗https://whatsapp.com/channel/0029VbB9FRYEQIafeiqslX2F

Venture Village Wall 🦄

@venturevillagewall · Post #3441 · 19.12.2024 г., 10:24

YouTube Issues and Economic Updates 🔧 Users in Russia report ongoing issues with YouTube, marking another decrease in platform traffic, as confirmed by Google. 📊 The Russian Communications Ministry (RKN) plans to acquire data on user attempts to access blocked sites, though it already collects some relevant data. ⚙️ The Ministry of Economic Development aims to increase processing limits to enhance labor market flexibility amid personnel shortages. 📈 Predictions suggest the information security market in 2024 could grow by 30% to reach 593 billion rubles, though other estimates are lower. 📺 Yandex is negotiating with Haier, TCL, and Huawei for the installation of its OS on all their TVs supplied to Russia. 💰 AI search engine Perplexity successfully raised $500 million at a valuation of $9 billion, a significant increase from its earlier valuation of $1 billion. 🇺🇸 In the US, an investigation has been initiated against TP-Link over national security concerns, as they hold 65% of the domestic router market. #YouTube#RKN#EconomicDevelopment#MarketGrowth#InformationSecurity#Yandex#Perplexity#Funding#TPLink#NationalSecurity#Russia#TechNews#AI#Router#Television#DataPrivacy#UserExperience#TrafficIssues

Venture Village Wall 🦄

@venturevillagewall · Post #3443 · 19.12.2024 г., 11:00

YouTube Issues and Economic Growth Users in Russia again report issues with YouTube, causing a traffic drop noted by Google. The Roskomnadzor is seeking data from providers on user attempts to access blocked sites, despite existing data collection measures not aiding user identification. The Ministry of Economic Development aims to raise processing limits to improve labor market flexibility amid staff shortages. The cybersecurity market is projected to grow by up to 30% in 2024, although some estimates suggest only 10-15% growth due to high interest rates and tax burdens. Yandex plans to negotiate with Haier, TCL, and Huawei to install its OS on all TVs sold in Russia. AI search engine Perplexity secures $500 million funding, raising its valuation to $9 billion, up from $1 billion in April. In the U.S., the investigation into TP-Link for potential national security threats begins, as it commands 65% of the U.S. home router market. #YouTube#Russia#InternetIssues#Roskomnadzor#LaborMarket#Cybersecurity#Growth#Yandex#AI#Funding#Perplexity#TPLink#NationalSecurity#TechNews#MarketTrends#Television#Haier#TCL#Huawei#EconomicDevelopment#VPN