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

Резултати

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

Пребарај: #tethertreasury

当前筛选 #tethertreasury清除筛选
Michaël Van de Poppe Official

@michaelvandepoppeanalyst · Post #4543 · 20.08.2024 г., 06:35

Tether Treasury minted 1B $USDT on #TronNetwork again 25 minutes ago! #TetherTreasury has minted 33B $USDT in the past year, of which 19B $USDT was minted on #TronNetwork and 14B $USDT was minted on #Ethereum. https://tronscan.org/#/contract/TBPxhVAsuzoFnKyXtc1o2UySEydPHgATto/transfers

Michaël Van de Poppe Official

@michaelvandepoppeanalyst · Post #4474 · 15.08.2024 г., 07:22

Since August 5, 955M $USDT has flowed into #Kraken from #TetherTreasury through the deposit address "TQef...k32t" on #TronNetwork. https://tronscan.org/#/address/TQef1npDuBwGCVXKY5SE9A1BdPSEYzk32t/transfers The current circulation of $USDT is 116.53B, with 52.05% circulating on #TronNetwork.

SpotOnChain | Announcement

@spotonchain · Post #952 · 09.08.2024 г., 01:29

Wallet 0x1db (likely #Cumberland) transferred 270M $USDT from the #TetherTreasury to CEXs in the past 24 hours as the market rebounded! After the market dipped on Aug 5, this wallet received 660M $USDT from the Tether and then injected 607.3M $USDT to various exchanges, including: • $333M to #Coinbase • $118.5M to #Kraken • $72.4M to #Binance • $51.5M to #OKX • $32M to #Bullish It seems like institutions are still buying? Follow @spotonchain and check out the Cumberland’s address via https://platform.spotonchain.ai/en/profile?address=0x1dbbbc3fdb2c4fabd28fd9b84ed99ceb84bfbec5

SpotOnChain | Announcement

@spotonchain · Post #963 · 14.08.2024 г., 04:40

The #TetherTreasury minted 1B $USDT on #Ethereum and transferred 183.2M $USDT to #Cumberland for CEX deposits in the past 16 hours! Overall, since the crash on Aug 5 (9 days ago), Cumberland has • received 953M $USDT from Tether on Ethereum • then injected 906.7M $USDT into various exchanges, including #Coinbase, #Kraken, #OKX, #Binance, and #Bullish.com. Follow @spotnchain and check out the Cumberland’s address via https://platform.spotonchain.ai/en/profile?address=0x1dbbbc3fdb2c4fabd28fd9b84ed99ceb84bfbec5