@profile_pictures_tm · Post #13280 · 15.02.2023 г., 10:01
#Celebrities
Hashtags
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
Пребарај: #celebrities
@profile_pictures_tm · Post #13280 · 15.02.2023 г., 10:01
#Celebrities
Hashtags
@everything_science · Post #3453 · 14.05.2025 г., 19:06
Mother's Day is banned in North Korea because it was distracting citizens from their love for Kim Jong-un. #Celebrities 💡@Everything_Science
Hashtags
@kursivuzeng · Post #2674 · 27.02.2026 г., 06:53
🌟 TIME Unveils 2026 Women of the Year List 👩 TIME has named 16 influential women from entertainment, sports, business and activism as its 2026 Women of the Year, celebrating their contributions to equality and social progress. 🎬 Honourees include actor-singer Teyana Taylor, Lucy Liu, Sheryl Lee Ralph, filmmaker Chloé Zhao, musician Brandi Carlile, and Olympic champion Sydney McLaughlin-Levrone. Authors, activists, and business leaders such as Mel Robbins, Mariska Hargitay, Amy Sherald, Reshma Kewalramani, Kecia Steelman, and Reshma Saujani are also featured. Humanitarian figures like Isata Dumbuya, Sister Norma Pimentel, Safeena Husain, and Mahnoor Omer are recognised for their grassroots impact. Read more on the website #Celebrities
Hashtags
@balinews · Post #310 · 03.02.2025 г., 11:06
🎤 Usher feels happy in Bali 😎 R'n'B singer Usher visited Bali and called himself the happiest man in the world. 📱 In one of his latest posts, the rapper shared his joy of being in Bali and said he was enchanted by the island of gods. 👏 Subscribers supported him in high appreciation of the island and its beauties. @BaliNews #celebrities
Hashtags
@balinews · Post #54 · 21.05.2024 г., 09:30
✈️Elon Musk flew to Bali for the first time to launch Starlink Photos of the founder Elon Musk in a traditional Balinese shirt and frangipani necklace have already traveled around the world. On the day of his arrival, he had time to participate with the country's President Joko Widodo in the opening of the World Water Forum and admire the nature of Bali. I'm amazed by the mangrove trees and this huge amount of greenery around, it's really cool. shared the Tesla founder did what he came for – he tested the Starlink internet service. @BaliNews #celebrities
Hashtags
@finsignal · Post #4063 · 17.01.2026 г., 15:57
Forecasts of the #celebrities of the crypto industry on #BTC
Hashtags
@balinews · Post #49 · 16.05.2024 г., 11:05
😮Elon Musk flies to Bali to unveil Starlink service SpaceX founder Elon Musk will be in Indonesia for the launch of the company's Starlink internet satellite service in the country on May 19. This was announced by the Minister for Investment, Mr. Luhut. The event is expected to take place alongside President Joko Widodo on the sidelines of the World Water Forum, which kicks off on the island on Saturday, May 18. Since the beginning of the year, the heads of two of the world's biggest technology companies have already visited Indonesia, promising major investments in the country. They are Apple CEO Tim Cook and his Microsoft counterpart Satya Nadella. @BaliNews #celebrities#events
Hashtags
@balinews · Post #549 · 09.01.2026 г., 09:35
⭐️It looks like a movie featuring Gerard Butler may be filming in Ubud 📸 The actor has been spotted several times in the city center, calmly walking around, chatting with people, and taking photos with fans — without security or a film crew, dressed in casual everyday clothes, far from the usual Hollywood glamour. 👍 The very fact that a Hollywood star of this level can freely walk around Ubud and interact with locals has once again fueled conversations about Bali as a place where celebrities can be “just people,” rather than targets for paparazzi. What do you think — is this a film shoot, or is Butler simply vacationing on the island? #celebrities#Ubud@BaliNews
Hashtags
@stickroom · Post #4718 · 06.12.2024 г., 08:01
Тина Канделаки #celebrities#business подписывайся на тг-канал добавить стикеры
Hashtags
@wallparpes_hd · Post #82 · 17.03.2020 г., 23:11
Lili Reinhart 2020 #actress#celebrities
Hashtags
@wallparpes_hd · Post #755 · 21.04.2020 г., 17:53
Anastasia Shcheglova #model#celebrities 📱 Los mejores Wallpapers ⭐📱 @wallparpes_hd
Hashtags
@wallparpes_hd · Post #100 · 18.03.2020 г., 22:28
Chloe Middleton #Model#Celebrities
Hashtags