@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 #146 · 16 сеп.
Функция sub в regex может принимать функцию в качестве аргумента repl. 📄 Из документации: If repl is a function, it is called for every non-overlapping occurrence of pattern. The function takes a single match object argument, and returns the replacement string. То есть для каждого совпадения будет вызвана функция для вычисления замены вместо замены на одну и ту же строку для всех совпадений. Иными словами, для замены разных совпадений на разные строки не потребуется запускать re.sub() много раз для каждой строки замены. Достаточно определить функцию, которая вернёт строку для каждого из совпадений. Описание слишком запутанное🤔, давайте лучше рассмотрим на простом примере: Создаем карту замены. То есть какие строки на какие требуется менять. remap = { 'раз': '1', 'два': '2', 'три': '3', 'четыре': '4', 'пять': '5', } Пишем функцию поиска строки для замены. Единственным аргументом будет объект re.Match. Используя данные этого объекта мы вычисляем замену on-the-fly! def get_str(match: re.Match): word = match.group(1) return remap.get(word.lower()) or word Пример текста. text = '''Раз Два Три Четыре Пять Вместе будем мы считать Пять Четыре Три Два Раз Мы считать научим вас ''' Теперь запускаем re.sub и вместо строки замены (repl) подаём имя функции. (Данный паттерн ищет отдельные слова в тексте) >>> print(re.sub(r'(\w+)', get_str, text)) 1 2 3 4 5 Вместе будем мы считать 5 4 3 2 1 Мы считать научим вас Думаю, достаточно наглядно 🤓 #libs#regex
Пребарај: #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