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

Резултати

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

Пребарај: #millionaires

当前筛选 #millionaires清除筛选
Fx Signals_Gold #XAUUSD(GOLD)💰

@FxSignals_Gold · Post #10535 · 25.03.2026 г., 13:43

Dear Traders/Investors, You're never going to be 100% ready and it's never going to be just the right time. If you want it , you just have to do it. ⚡️ Services We @ FxSignals_Gold Provides ⚡️ 🔔 FxSignals_Gold Free - ✔️ 1-3 Free Signals Weekly ✔️Educational Insight 🔔 FxSignals_Gold VIP - ✔️ 2-4 Paid Signals Daily ✔️Educational Insight ✔️ Periodic Market Analysis on Trades ✔️ Quality over Quantity Trade calls ✔️Best support for 24/7 assistance 🔔 FxSignals_Gold Account Management Service - ✔️Perfect for New and Busy Traders ✔️ Minimum of 25% profit Weekly ✔️Monitored by Experts and Pro Traders ✔️Best support for 24/7 assistance 🔔 FxSignals_Gold Prop Firm Challenge & Verification Services - ✔️Account traded and Monitored by Experts and Pro Traders ✔️Best support for 24/7 assistance ✔️All trades are executed manually ✔️Only $150 fee for phase 1&2 challenge As for FxSignals_Gold, our goal is to create #Millionaires amongst our traders, for you all to be Financially free. For Question, Information,Feedback ... Kindly Contact ☎️T.me/FrxMaster_Gold

Fx Signals_Gold #XAUUSD(GOLD)💰

@FxSignals_Gold · Post #10071 · 02.01.2025 г., 04:39

WELCOME TO 2025!🎉 ✔️Be sure to write down your goals for 2025 ✔️What you plan to achieve with FxSignals_Gold for 2025 ✔️Don't just write down your goals but rather write down how you plan to achieve your goals ✔️Make sure your goals are attainable and achievable. Everyday, people make choices about what they intend to achieve. 2025 has to be a year where you'll set yourselves up for success by making better decisions and choices. It is important to know and note what you want to do and achieve with your life in 2025, because 2025 is the year you will make your dream a reality with FxSignals_Gold. As for FxSignals_Gold, our goal for 2025 is to create #Millionaires amongst our traders, for you all to be Financially free so you and your family can live a better life. 🔖We thank you all for the support thus far! We remain the best Forex providing service in the world. Official resumption date remains 6th of January 2025. FxSignals_Gold Wishes you all the best in the New Year! Happy New Year!

Venture Village Wall 🦄

@venturevillagewall · Post #4307 · 04.03.2025 г., 22:00

Crypto News Highlights: Market Moves & Updates 🚨 494,153 #SOL ($71.95M) transferred to Coinbase Institutional. 📉 SEC drops lawsuit against Cumberland DRW amid Trump admin crypto probe. 🇸🇻 El Salvador's President Bukele affirms ongoing Bitcoin purchases despite IMF's demands. ⚡ Belarus to boost cryptocurrency mining, leveraging excess electricity. 💰 BlackRock posits demand exceeds Bitcoin supply among US millionaires. Check for detailed insights: Whale Alert, SEC News, El Salvador Update, Belarus Mining #SOL#Crypto#SEC#Bitcoin#ElSalvador#Belarus#Mining#BlackRock#Finance#Blockchain#MarketUpdates#CryptoNews#WhaleAlert#IMF#Regulations#Energy#Millionaires#Demand#MarketMovements#Institutional#CryptoInvesting