TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #156 · 2 окт.

Те, кто в Python не первый день, хорошо знают, что на число можно умножить не только число, но и другие типы. Главное, чтобы у этих типов была реализация такой операции. # list >>> [1] * 3 [1, 1, 1] # tuple >>> (2, 3) * 3 (2, 3, 2, 3, 2, 3) # string >>> "A" * 3 "AAA" Так работает полиморфизм стандартных типов. Интересно здесь то, что это сработает и в том случае, когда порядок операндов обратный. То есть int умножить на [тип]. # list >>> 3 * [1] [1, 1, 1] # tuple >>> 3 * (2, 3) (2, 3, 2, 3, 2, 3) # string >>> 3 * "A" "AAA" Если хотите реализовать такое поведение в ваших классах то следует помнить два момента: 1. Если множитель справа, то вам нужно реализовать метод __mul__, наш класс это первый операнд, то есть слева. myType * 3 2. Если множитель слева, то вам нужно реализовать метод __rmul__, наш класс это второй операнд, справа. 3* myType Всё тоже самое можно делать и для других математических операторов. И если в этом примере действие и результат будут фактически одинаковыми, то бывают ситуации, когда это не так. Например, при умножении матриц имеет значение порядок операндов. Для других операторов, таких как деление или сдвиг, очень важно кто с какой стороны находится. >>> 2/4, 4/2 (0.5, 2.0) >>> 2<<3, 3<<2 (16, 12) >>> 100%15, 15%100 (10, 15) #tricks#basic

Резултати

Пронајдени 51 слични објави

Пребарај: #shib

当前筛选 #shib清除筛选
Coin Sonar

@CoinSonar · Post #243269 · 16.04.2026 г., 18:53

#SHIB | Volume spike (USDT PAIR) 9 times the average volume 488.35K USDT traded in 15 min └Selling vol: 255.32K USDT 🔴 Boost score: 1/10 24h Vol: 4.72M USDT (Binance) Price: 0.00000635 (-4.2% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28511 · 02.03.2025 г., 16:57

#SHIB/USDT analysis : The price of #SHIB has recently broken out of its trendline, indicating a potential bullish momentum. While a retracement to the 200 EMA is expected, the overall sentiment suggests that the price is likely to move upwards and test the swing high level. TF : 4h Entry : $0.00001480 Target : $0.00001734 SL : $0.00001313

Hashtags

Pro Analysis

@proanalysistrader · Post #28225 · 19.11.2024 г., 12:45

#SHIB/USDT analysis : #SHIB has successfully broken out of the trendline, demonstrating a strong bullish movement. It is anticipated that this upward momentum will continue, allowing the price to test higher levels. TF : 1D Entry : $0.00002536 Target : $0.00004567 SL : $0.00001827

Hashtags

American Crypto©

@americancryptotrading · Post #27615 · 10.05.2026 г., 08:40

🇺🇸#SHIB/USDT is facing the upperboundary of the fallingwedge pattern on the 3D timeframe👨‍💻 A confirmed breakout could lead to massive gains🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27392 · 30.09.2025 г., 09:24

🇺🇸#SHIB/USDT has retested the upperborder of the fallingwedge pattern on the 2D chart🧐 The rally is coming🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27334 · 06.08.2025 г., 09:08

🇺🇸#SHIB/USDT is currently trading at the s/rzone on the weekly chart👀 Bullish mode is on if we bounce📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27206 · 04.04.2025 г., 21:47

🇺🇸#SHIB/USDT is trading within the descendingchannel pattern on the daily timeframe🔍 Looks bullish📈 American Crypto©

Hashtags

Coinlegs Cryptocurrency Signals

@coinlegs · Post #9982 · 24.02.2024 г., 08:21

#SHIB -%5 in 6hrs 🤑🤑 Algorithmic bots on our Discord server print us instant money. Thanks to Hey CoinLegs signals, we were able to catch short-term signals instantly. Join us to get access to these and many other algorithmic auto signals 👇 https://discord.gg/8RKtAA9cxZ

Hashtags

ПретходнаСтраница 1 од 5Следна