@MEXC_FairPrice_Spreads · Post #1262 · 09.02.2026 г., 01:23
#CAI | 13.20% | SHORT🔴 Last Price: 0.0463 Fair Price: 0.0409 Max Leverage: 20x Max Size: 55.56$ MEXC Fair Price Spreads
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
Пребарај: #cai
@MEXC_FairPrice_Spreads · Post #1262 · 09.02.2026 г., 01:23
#CAI | 13.20% | SHORT🔴 Last Price: 0.0463 Fair Price: 0.0409 Max Leverage: 20x Max Size: 55.56$ MEXC Fair Price Spreads
Hashtags
@MEXC_FairPrice_Spreads · Post #1024 · 02.02.2026 г., 09:13
#CAI | 13.67% | LONG🟢 Last Price: 0.0562 Fair Price: 0.0651 Max Leverage: 20x Max Size: 67.44$ MEXC Fair Price Spreads
Hashtags
@BinanceAlphaAirdropTracker · Post #521 · 12.01.2026 г., 07:58
⏰#CAI Claim with minimum 252 pts starts in about 2 minutes 🎁 Airdrop: 40 $CAI ($NotAvailable)
Hashtags
@WangZhuanZhan · Post #34516 · 28.10.2024 г., 12:55
C-c彩c桥q- 彩桥 (1982) 直达链接:https://pan.quark.cn/s/a016840f82fb #彩桥 #Cai qiao 链接:https://link3.cc/sf_com #电影#爱情#内地#80年代
@ai_and_law · Post #197 · 22.12.2023 г., 08:04
CAI Unveils Public "Zero Draft" for AI Framework Convention Greetings AI & Law community! The European Committee on Artificial Intelligence (CAI) has announced the public release of the revised "Zero Draft" Framework Convention on Artificial Intelligence, Human Rights, Democracy, and the Rule of Law. Key Points: 1️⃣ The "Zero Draft" serves as the foundational document for drafting the Framework Convention and is not the final outcome of CAI negotiations. 2️⃣ A Consolidated Working Draft has been prepared based on the first reading of the revised Zero Draft, containing preliminary agreements and proposals for further negotiations. 3️⃣ The text which is not in brackets and in red font is considered to be preliminarily agreed. 4️⃣ The CAI Bureau has decided to make this document public, providing transparency into the ongoing process. The recently released Draft Framework Convention, based on outcomes from the second reading, will be the focal point for the upcoming 9th Plenary meeting. Notably, provisions under negotiation include the Scope, Risk and impact management framework, and the Conference of the Parties. #AIlaw#CAI#AIregulation#FrameworkConvention#TransparencyInAI
@githubtrending · Post #15481 · 09.02.2026 г., 11:30
#go#actions#cai#ci#claude_code#codex#copilot#gh_extension#github_actions GitHub Agentic Workflows let you write simple markdown instructions in natural language to automate repo tasks like triaging issues, fixing CI failures, generating reports, and improving code—running safely as GitHub Actions with AI like Copilot or Claude. Strong guardrails ensure read-only access by default, sandboxed execution, and human-reviewed outputs via pull requests. This saves you time on repetitive work, boosts efficiency with adaptive AI decisions, and keeps everything secure without complex YAML coding. https://github.com/github/gh-aw