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

Резултати

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

Пребарај: #wealth

当前筛选 #wealth清除筛选
Go! Announcements

@gorwachain_announcements · Post #506 · 25.08.2024 г., 21:30

There's a lot to be made by tapping and claiming coins from the Go! Ton App! Get started Here: https://t.me/thegoprojectBot This bot is your free pass to Sweet rewards, get started Now. Once you get started, you've got to maintain your spot as a weekly and monthly active user. Here's why: 🔹 There are more rewards as you get more active 🔹 You get features nobody else gets 🔹 You get into higher ranks which means exclusive airdrops will be sent to you. 🔹 You get access to collectibles reserved just for you 🔹 You get to Contribute more to the community, and influence the direction of the project Ready to start Tapping? Let's Go: https://t.me/thegoprojectBot #gotonapp#tap2earn#bot#rewards#boost#wealth Join: 🐣X✉️Chat✉️News🤖Discord Play: 🕹️TON App💻Web App Info: 🖥Newsletter🌐Website🌐Blog

Inspiring Images

@InspiringImages · Post #13506 · 22.01.2026 г., 05:13

Rich Dad vs Poor Dad mindset 💸 Poor Dad: “Money comes when you work.” Rich Dad: “Money comes when you build a system.” The lesson: Don’t only trade time for money. Build assets, skills, and processes that pay you repeatedly. Today’s action: Pick ONE system to start: • automate savings/investing • create a digital product • build a side business workflow #RichDadPoorDad#money#wealth#mindset#financialfreedom#selfimprovement#books

Crypto Fight || News 🚀

@cryptofightnews · Post #2910 · 18.09.2025 г., 07:52

🚀 Analyst Price Targets: $2–$5 Long Term 🚀 Royals see it. Whales see it. Do you? Buy at $0.00405 before it’s too late. 👉www.shheikh.io #Crypto#Blockchain#AI#RWA#DeFi#Tokenization#Altcoins#CryptoCommunity#Presale#BullRun2025#NextBigThing#Wealth

Airdrop Comic

@airdropcomic · Post #2147 · 16.10.2025 г., 12:24

🔥Presale – SHHEIKH Phase 2 (LIVE) ✅ 💠Total Reward: Token Raises $6.92M+ in Phase 2, Attracts Global Investors 🚨SHHEIKH Presale Surpasses $6.92M+ — Momentum Is Unstoppable 🚨 ✅ $6.92M+ raised ✅ 2.21B+ tokens sold ☀️Presale Link: – Click Here ♦️AI + RWA = the next trillion-dollar blockchain market. ♦️Secure SHHEIKH at $0.00405 before the next surge. ♦️Follow their Twitter account ♦️Join their Telegram Channel 📅End Date: TBA 📤Distribution: After campaign ends ®Note - Please do your own research (DYOR) before joining to any airdrops project. #Crypto#Blockchain#AI#RWA#DeFi#Tokenization#Altcoins#Presale#CryptoCommunity#Wealth#FutureOfFinance#BullRun2025

Crypto Officer™

@cryptoofficer · Post #1568 · 09.10.2025 г., 02:39

📦New Project Spotlight: SHHEIKH Token 🔥 🪙 Phase 2 Live: $0.00405 + 5% Bonus 💎Rating: ⭐️⭐️⭐️⭐️⭐️ 🔗Participate now: www.shheikh.io =========================== 📣How to participate: ✅Visit www.shheikh.io ✅ Connect your wallet ✅ Purchase SHHEIKH tokens (Min: $10) ✅ Receive instant 5% bonus ✅ Follow their Twitter & Join Telegram =========================== 🖥SHHEIKH has raised $6.53M+ USDT and sold 2.05 BILLION tokens in Phase 2. Recognized as the #1 AI + RWA project of 2025, combining artificial intelligence with real-world asset tokenization. 🚨Why investors are watching: ✅Royals & whales accumulating positions ✅ $6.53M+ raised from global investors ✅ Analysts' top AI + RWA pick for 2025 ✅ Still early entry before phase closes #Crypto#Blockchain#AI#RWA#DeFi#Altcoins#Tokenization#BullRun2025#NextBigThing#Presale#Wealth#CryptoCommunity 🔴Note:Please do your own research (DYOR) before participating. This is not financial advice (NFA).

Venture Village Wall 🦄

@venturevillagewall · Post #3672 · 21.12.2024 г., 18:50

Sheldon Schiff Proposes USAcoin Peter Schiff advocates replacing Bitcoin as a strategic US reserve with a new crypto asset, USAcoin, featuring a limited supply of 21 million coins and an improved blockchain for better payment capability. He highlights this shift as a pathway to wealth, contrasting his views on Bitcoin, which he refers to as digital gold. Schiff also generated an image with Elon Musk and Donald Trump against a Bitcoin backdrop, criticizing ChatGPT for its content restrictions. _"HODL to the Moon, America!"_ #PeterSchiff#USAcoin#Crypto#Bitcoin#Blockchain#Investment#DigitalGold#Wealth#PaymentSystems#Grok

Venture Village Wall 🦄

@venturevillagewall · Post #4004 · 28.01.2025 г., 01:00

Bitcoin Surges to $102,000 Bitcoin's price has skyrocketed to $102,000, marking a significant milestone in its market value. This surge indicates rising investor confidence and increasing demand in the cryptocurrency sector. #Bitcoin#Crypto#Market#Finance#Investing#BullMarket#Blockchain#Volatility#Trends#Wealth#Trading#Technology#Asset#DigitalCurrency#PriceRise

Airdrop Ninja™

@airdropsalertteam · Post #9466 · 09.10.2025 г., 02:41

📦Exclusive Project Spotlight: SHHEIKH Token 👑 🛍 Phase 2 Price: $0.00405 | Minimum: $10 USDT 💎 Status: Gaining Major Royal Attention 🔗Official Site: www.shheikh.io =========================== 📣How to Participate: ✅Visit www.shheikh.io ✅ Connect Your Wallet ✅ Purchase SHHEIKH Tokens ✅ Follow Twitter & Join Telegram =========================== 🔥SHHEIKH has raised $6.53M+ USDT with confirmed interest from Middle Eastern royal investors. This AI-powered RWA project represents real institutional momentum and technological innovation. 🚨Key Highlights: ✅$6.53M+ raised from global investors ✅Middle Eastern royals in active talks ✅ Real institutional power and backing ✅ Limited time remaining in Phase 2 #Crypto#Blockchain#AI#RWA#DeFi#Altcoins#Tokenization#Presale#CryptoCommunity#BullRun2025#Wealth#NextBigThing 🔴Note:Please do your own research (DYOR) before participating. Nothing in this post is financial advice (NFA).

Venture Village Wall 🦄

@venturevillagewall · Post #4023 · 29.01.2025 г., 19:00

Massive $4M Profit in Hours! Mr. Burns profited over $4 million within six hours of trading the VINE token. Initially investing $70k, he sold 9.96 million VINE for $2.36 million while retaining 4.67 million VINE worth $1.73 million—highlighting a surge in the token's value. 📈 Full story: Mr. Burns’ Trading Success #Crypto#VINE#Trading#Profit#Investing#Tokens#Blockchain#ATH#Finance#Wealth#MrBurns#VentureCapital#Speculation

Venture Village Wall 🦄

@venturevillagewall · Post #4077 · 05.02.2025 г., 19:00

BlackRock Launches Bitcoin ETP in Europe BlackRock, the largest asset manager globally, is set to launch an exchange-traded product (ETP) linked to Bitcoin in Europe. Marketing may start this month, marking BlackRock's first crypto-linked ETP outside North America. Read more #BlackRock#Bitcoin#ETP#Crypto#Finance#Investment#Europe#Assets#Market#Trade#Blockchain#News#Regulation#ETF#DigitalAssets#Wealth#Trading#Economy#Global#FinanceNews

Venture Village Wall 🦄

@venturevillagewall · Post #3380 · 18.12.2024 г., 12:09

Mirabelle Secures $1.05M Funding Mirabelle, specializing in mortgage life financing for seniors, has secured $1.05 million in funding as of December 3, 2024. The service aims to enhance retirement experiences by valuing wealth while allowing seniors to remain in their homes. #Funding#Mortgage#LifeFinance#Seniors#Retirement#Housing#Wealth#FinancialServices#Mirabelle#Finance

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