@starrailleaks · Post #12544 · 05.05.2026 г., 17:37
[Questionable] Gilgamesh is Destruction Lingsha novaflare One NPC will become playable #anonymous
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #22 · 19 јан.
Заметка начинающим, которые часто сталкиваются с подобной непоняткой. Ситуация следующая, есть список файлов: names = [ 'image.bmp', 'second.txt.bkp', 'data.db', '.config.cfg', 'file.ext.bkp' ] И мы хотим убрать у них окончание ".bkp". Не знаю зачем, пример довольно надуманный) Но суть он показывает, а это главное. Те, кто еще не очень знаком с библиотекой os.path или pathlib, вероятно решат обработать имена как строки. И тут вполне подойдет метод строки strip(). Что делает этот метод? Он отрезает указанные символы по обеим сторонам строки. Если ничего не указать, то убирает невидимые символы (пробелы, табуляции и переносы строк). В нашем случае будет выглядеть вот так: >>> name.strip('.bkp') То есть просим удалить строку '.bkp' по краям имени файла, если таковая есть. Можно применить аналогичный метод rstrip(), чтобы отрезать только справа, но для этого примера используем обычный. >>> for name in names: >>> print(name.strip('.bkp')) image.bm second.txt data.d config.cfg file.ext Хм, что-то не то с нашими именами! Что случилось??? Видим нежелательное переименование в именах, где и близко не было указанной строки '.bkp' А дело всё в том, что данный метод ищет не указанную строку, а указанные символы, и не важно в каком порядке. Для метода strip() строка '.bkp' это не паттерн для поискаа список символов. Потому он отрезал симовол 'p' от '.bmp' и удалил точку из файла '.config.cfg'. Как тогда правильно заменить именно паттерн? Для начинающего можно посоветовать метод строки replace(), который как раз использует для замены указанную строку целиком. В нашем примере заменим её на пустую строку. >>> for name in names: >>> print(name.replace('.bkp', '')) image.bmp second.txt data.db .config.cfg file.ext Уже лучше, но помните, это лишь пример про strip(). Для работы с именами файлов есть способы и более "правильные", дающие однозначно верный результат. Я взял файлы только в качестве примера. Даже replase() тут может сделать не то что ожидаем. Просто впредь будьте внимательны с этим strip(). #basic
Hashtags
Пребарај: #anonymous
@starrailleaks · Post #12544 · 05.05.2026 г., 17:37
[Questionable] Gilgamesh is Destruction Lingsha novaflare One NPC will become playable #anonymous
Hashtags
@starrailleaks · Post #12368 · 20.04.2026 г., 14:57
SP Blade’s main role is as a support, providing team-wide assistance by deploying a Zone that reduces enemy attributes/stats. This allows him to support a wide variety of DPS characters, including Ashveil. Additionally, he can release a AoE FuA that deals damage scaled based on a percentage of his Max HP. #anonymous
Hashtags
@starrailleaks · Post #11962 · 16.03.2026 г., 13:51
Evanescia Skill deals multi-hit damage. On execute (kill) it restores stacks and energy. When teammates trigger Follow-up / Additional / Aha Instant, Evanescia gains stacks. The Ultimate can either consume stacks to deal damage or clear the stacks for damage; executing an enemy gives extra action and energy refund. Her Aha Instant appears in the middle of the action order and can be copied. Sw SP The Ultimate transformation mainly charges through punchlines converted from Aha Instants. For characters on the Elation path, the order of Aha Instants is fixed, and Sw SP’s always goes last. Sw SP’s Aha Instant cannot be copied. In the transformation state, the dragon cannot be controlled. When using single-target attacks, Sw SP attacks first and the dragon follows up. When using AoE gestures/attacks, the dragon also follows up afterward. At the end, snapping fingers triggers one special Aha Instant. In transformation, the punchlines generated by Aha Instants can store energy, but there is a limit. One more thing worth mentioning is that a future character who can copy Ultimates when conditions are met will be a teammate of Sw SP and Evanescia. #anonymous uncle
Hashtags
@starrailleaks · Post #11945 · 16.03.2026 г., 11:53
hint about animations #anonymous uncle
Hashtags
@starrailleaks · Post #11918 · 11.03.2026 г., 14:52
SW SP has a second form The splash art is just hiding a second form, likely to avoid spoilers. You’ll see for yourselves on March 13th. #anonymous uncle
Hashtags
@starrailleaks · Post #11906 · 11.03.2026 г., 07:47
Buffing Firefly, Seele, Huohuo, Sunday. Jiaoqiu is on the way. (buff is coming) Old Evanescia was abandoned. The special effects (VFX) are being reworked. The current power level is on par with Seele. #anonymous uncle
Hashtags
@starrailleaks · Post #11898 · 10.03.2026 г., 15:39
EMC lightning Elation Evanescia has a summon (probably 🦊) #anonymous uncle
Hashtags
@starrailleaks · Post #11895 · 10.03.2026 г., 08:59
EMC’s mechanic roughly copies the previous teammate’s Elation skill and provides a large number of Punchlines “provides a large number of Punchlines” is wrong! Sparxie is a Punchline-generating machine, it’s written in her design document. EMC doesn’t have the ability to provide a large amount of Punchlines. Among the recently released characters, none generate Punchlines more efficiently than Sparxie. #anonymous uncle
Hashtags
@wallpapersarena · Post #6509 · 19.10.2024 г., 06:59
#Anonymous @WallpapersArena
Hashtags
@wallpapersarena · Post #3765 · 23.07.2022 г., 07:23
#Anonymous @WallpapersArena
Hashtags
@wallpapersarena · Post #3651 · 01.06.2022 г., 16:27
#Anonymous🎭 @WallpapersArena
Hashtags
@wallpapersarena · Post #3595 · 11.05.2022 г., 05:41
#Anonymous @WallpapersArena
Hashtags