@cryptocurreniesbtc · Post #22119 · 11.11.2023 г., 12:14
#Altcoin season is arround the corner.
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
Пребарај: #altcoin
@cryptocurreniesbtc · Post #22119 · 11.11.2023 г., 12:14
#Altcoin season is arround the corner.
Hashtags
@CryptoAustralia · Post #14735 · 14.12.2023 г., 08:57
I think #Altcoin season is next. By Crypto Australia
Hashtags
@elfcryptovip · Post #11747 · 21.07.2025 г., 07:45
The #Altcoin Season Index is climbing rapidly, but only a handful of coins are seeing strong gains!
Hashtags
@michaelvandepoppeanalyst · Post #4797 · 09.09.2024 г., 18:29
The boring state is the period of accumulation before a new push happens. That’s the current state of the #Altcoin markets.
Hashtags
@michaelvandepoppeanalyst · Post #4780 · 07.09.2024 г., 08:12
The #Altcoin market capitalization valued in Bitcoin is at the highest level since the end of July. Good perspectives, and it's a pretty substantial breakout. Better times are ahead.
Hashtags
@michaelvandepoppeanalyst · Post #4768 · 05.09.2024 г., 16:43
The #Altcoin markets are reversing. I'm positioned into $OMNI (and under-water), but it's showing a: - Daily bullish divergence. - Reclaiming the level of early August. Expect to see a run of 2-3x in the coming 2-3 months against $BTC value --> the most important metric.
Hashtags
@michaelvandepoppeanalyst · Post #4694 · 31.08.2024 г., 15:48
The #Altcoin market capitalization, valued in Bitcoin, is still consolidating. We're in the middle of that bottoming process, but it's taking a long time. Expecting to see a significant run towards new highs once this starts to turn around.
Hashtags
@michaelvandepoppeanalyst · Post #4605 · 24.08.2024 г., 08:01
Valid falling wedge and bullish divergence on the #Altcoin market capitalization divided by Bitcoin. I think we’re in for a great final part of this year. https://x.com/CryptoMichNL/status/1827254521225162944?t=CykS0U09CC0XSGUvztSAHw&s=19
Hashtags
@michaelvandepoppeanalyst · Post #4510 · 17.08.2024 г., 13:41
The Others market capitalization, which is technically the #Altcoin market capitalization, is currently acting at the low of 'Disbelief'.
Hashtags
@michaelvandepoppeanalyst · Post #4451 · 11.08.2024 г., 15:38
The #Altcoin market capitalization is down 60% from the ATH, while Bitcoin is only down 15%. Lots of upside for altcoins still to come.
Hashtags
@michaelvandepoppeanalyst · Post #4379 · 03.08.2024 г., 13:00
The #Altcoin market capitalization is not showing anything massive, yet. Smaller altcoins have been collapsing. The bigger ones still stand, through which this can be seen as a relatively normal consolidation for the entire index. Reversals should come in the coming weeks.
Hashtags
@michaelvandepoppeanalyst · Post #4244 · 20.07.2024 г., 14:05
The total #Altcoin market capitalization has bottomed during the release of the Mt. Gox news. A strong upward bounce, but more importantly, a strong reversal since it tested a higher timeframe support. https://x.com/CryptoMichNL/status/1814661548193034620?t=tmCmHJhGfr0c38lQIfYUfg&s=19
Hashtags