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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #418 · 9 мар.

Оператор pipe позволяет писать более компактный код, реализуя логику объединения данных (Union). Важно помнить, что его поведение зависит от контекста. Побитовые операции (логическое OR) result = 5 | 3 # 5 (0101) | 3 (0011) = 7 (0111) Самое главное - не путать с оператором or, это другое! Объединение множеств set_a = {1, 2, 3} set_b = {3, 4, 5} set_c = set_a | set_b # {1, 2, 3, 4, 5} set_c |= {5, 6} # {1, 2, 3, 4, 5, 6} Слияние словарей dict_1 = {"a": 1, "b": 2} dict_2 = {"b": 3, "c": 4} merged = dict_1 | dict_2 # {'a': 1, 'b': 3, 'c': 4} merged |= {"d": 5} # {'a': 1, 'b': 3, 'c': 4, 'd': 5} Аннотации типов, заменяет Union def process_data(value: int | str) -> None: print(value) Допустимо использовать в isinstance или issubclass isinstance(3, int | float) # True Паттерн-матчинг status_code = 404 match status_code: case 200 | 201 | 204: print("OK") case 400 | 404 | 500: print("ERROR") Для использования в своих классах требуется переопределить метод __or__ Так же нашел библиотеку pipe которая добавляет еще много возможностей. Рекомендую ознакомиться ;) #basic

Hashtags

Резултати

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

Пребарај: #aga

当前筛选 #aga清除筛选
UXLINK

@uxlink_community · Post #518 · 14.06.2025 г., 09:19

UXLINK Season 4 Airdrop Event & 2025 H1 Business Review Dear UXLINK Global Community, We are pleased to share our comprehensive 2025 first-half business review and announce the launch of the Season 4 Airdrop Event, designed to recognize and reward our valued contributors. 2025 H1 Key Achievements - User Growth: Reached 55 million registered users globally, solidifying our position as the #1 social platform in Web3. - Ecosystem Expansion: Partnered with over 500 organizations to drive innovation across the Web3 landscape. - Social Media Presence: Grew our TikTok user base to 1 million, enhancing engagement with broader audiences. - AI Integration: The AI Growth Agent (AGA) now supports 100,000+ social users and influencers, streamlining growth strategies for creators and startups. - Onchain Leadership: Maintained the #1 ranking in ETH ecosystem for $UXLINK and $UXUY holders, reflecting strong community trust. - Financial Performance: Achieved 12 consecutive months of profit growth and established strategic reserves of $BTC and $UXLINK to ensure long-term stability. - PayFi Ecosystem: Accelerated adoption of $UXLINK in daily transactions, with FujiCard undergoing public testing in over 10 countries. - Investment Milestone: Welcomed new strategic and long-term investors, reinforcing confidence in our vision for AI-powered Web3 infrastructure. Season 4 Airdrop Event: Reward Categories The Season 4 Airdrop is designed to recognize contributors across the following categories: 1. Influencer Starlink X influencers who drive adoption of AI Growth Agent(AGA) and create content promoting #UXLINK Season 4 & AGA. 2. PayFi Early Adopters Participants in the FujiCard public test (launching in Korea). 3. Social Club Card Phase 2 Users in Japan, Korea, Indonesia, and Vietnam are eligible for Phase 2 access to the Social Club Card. Partnership Task Achievers 4. Top yappers on the UXLINK Kaito Leaderboard and Kaito eco qualified users. How to Participate The Season 4 official website is now live at https://dapp.uxlink.io/season4. Visit to explore reward details, join ongoing initiatives, and contribute to building the UXLINK AI-powered Web3 Social Platform & Infrastructure. For questions or updates, follow us on X or join official Telegram groups and stay tuned for further announcements. #UXLINKSeason4#Airdrops#AGA Sincerely, The UXLINK Community

UXLINK

@uxlink_community · Post #514 · 10.06.2025 г., 07:13

Excited to partner with @PublicAI_ to innovate in AI and blockchain!🤝 PublicAI leverages 800k verified contributors for premium AI training data. Backed by @solana and @NEARProtocol Foundation & Stanford Blockchain Accelerator, secured $11M business revenue. #UXLINK AI Growth Agent will elevate AI training data quality together. 🚀 #AIAgent#PublicAI#AGA