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 слични објави

Пребарај: #passphrase

当前筛选 #passphrase清除筛选
TokenPocket

@tokenpocket_channel · Post #666 · 06.07.2023 г., 09:00

🆕We just released TP Wallet's New Version on iOS! 🔺2.1.1🔺 🔵 Support #Passphrase. 🔵 Support #Ordinals. #BTC 🔵 Support for WalletConnect V2 multi-chain switching. 🔵 Support 🇧🇩Bengali, 🇻🇳Vietnamese, 🇵🇭Filipino, 🇮🇩Indonesian, 🇷🇺Russian, 🇫🇷French, 🇩🇪German, 🇹🇷Turkish, and 🇪🇸Spanish languages. 👉https://tokenpocket.pro

TokenPocket

@tokenpocket_channel · Post #811 · 26.09.2023 г., 08:24

🔐Strengthening your secret recovery phrase shield! ✅TokenPocket Mobile Wallet (Both Android and iOS versions) now offers support for the #Passphrase feature! With #Passphrase, you can provide an extra layer of protection to your secret recovery phrase. Before utilizing a passphrase, it's essential to acquire some fundamental knowledge. 👇👇 https://medium.com/@tokenpocket-gm/about-passphrase-f8ed70c7bec6 #TokenPocket#cryptomarket#Crypto 【Details】https://twitter.com/TokenPocket_TP/status/1706584726348173506 【Powered By】Crypto Box

TokenPocket

@tokenpocket_channel · Post #775 · 12.09.2023 г., 07:15

🆕We just released TokenPocket's New Version on Android! 🔺1.8.5🔺 🔵 Support #CCTP Protocol. 🔵 Support users to edit Gas Fee on the Markets page. 🔵 Add token security detection to the Markets page. 🔵 Support custom network transactions on the Markets page. 🔵 Support custom #Nonce. 🔵 Support #Passphrase. 🔵 Support WalletConnect V2 on trondao. 🔵#EIP1559 Gas Fee model supports #Layer1 and #Layer2 Gas Fee display. 🔵 Support #BTC transaction acceleration. 🔵 Support shared SDK panel and DApp panel. 🔵 Support #Urdu🇵🇰 and #Arabic languages. 🔵 Upgrade wallet migration security reminders. 🔵 Optimize wallet creation/import page. 🔵 Optimize Cold Wallet signature operations. 🔵 Optimize users' experience. 👉https://www.tokenpocket.pro/ 【Details】https://twitter.com/TokenPocket_TP/status/1701494173398876369 【Powered By】Crypto Box