@artbysabertoofs · Post #604 · 07.04.2026 г., 10:18
First of the few adopts I'll be doing this week! A handsome, colorful werewolf! 👀🐺 He'll be up for sale soon for $65! ❤️ #adoptable
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
Пребарај: #adoptable
@artbysabertoofs · Post #604 · 07.04.2026 г., 10:18
First of the few adopts I'll be doing this week! A handsome, colorful werewolf! 👀🐺 He'll be up for sale soon for $65! ❤️ #adoptable
Hashtags
@artbysabertoofs · Post #567 · 05.03.2026 г., 22:01
BIG YEEN COMIN THRU! 😤 I've got this handsome fella for sale! He's sporting a hyper t-dick (trans bits)! 👀 Something a little indulgent. 🤭 Asking price is $75! He can come with a SFW alt as well as the t-dick version seen here. ^^ DM or reply to claim! #adoptable
Hashtags
@artbysabertoofs · Post #558 · 01.03.2026 г., 19:08
Lil horse adopt ready for a new home! ❤️ Kind of a Valentine's okapi mood here... 🥹 I hope he looks nice! Asking $40 for him! You'll get character rights, high-res/small-res files, and a NSFW (sheath) alt if you desire! Base provided by @/Twistedhound - please check them out! DM or reply to claim if you're interested! #adoptable
Hashtags
@artbysabertoofs · Post #400 · 18.10.2025 г., 01:09
Offering this fella up for $75! ^^ I went for a "blood moon" themed wolf this time around! 🔴🐺 Feel free to DM to claim if you would like him. He comes with high-res and small res files and character rights upon purchase. Payment through PayPal invoices! #adoptable#werewolf#sheath Can't purchase but want to help? I have a post you can share if you'd like. ^^ Thank you all so much! https://bsky.app/profile/sabertoofs.bsky.social/post/3m3glvbc2fc2r
Hashtags
@artbysabertoofs · Post #399 · 16.10.2025 г., 18:48
Offering this fella up for $80! ^^ He's a spooky werewolf ready to romp around on Halloween! :D Feel free to DM to claim if you would like him. He comes with high-res and small res files and character rights upon purchase. Payment through PayPal invoices! #adoptable#werewolf#sheath Can't purchase but want to help? I have a post you can share if you'd like. ^^ Thank you all so much! https://bsky.app/profile/sabertoofs.bsky.social/post/3m36lkpy52s2y
Hashtags