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

Резултати

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

Пребарај: #matrixx

当前筛选 #matrixx清除筛选
Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #94 · 15.03.2024 г., 04:10

¡New build available! #Matrixx | #diting Device: Xiaomi 12T Pro | Redmi K50 Ultra Build Date:2024-03-14 Downloads: Link | Changelog: ROM LOG - Include genshin fire animation - Fixed some jittering and lags - improve the performance - Sync with last source of matrix - Bug fixes - Now ota works Notes • Gapps are included • FW included , meme cam • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #87 · 28.02.2024 г., 20:06

¡New build available! #Matrixx | #diting Device: Xiaomi 12T Pro | Redmi K50 Ultra Sha256SUM:7fd2af1adb401cb9b1f2dd7e26129ed49eb64691b33f47bbb2d80668af39ec17 Build Date:2024-02-28 Downloads: Link | Changelog: ROM LOG -Fix camera issues Notes • Gapps are included • FW included , meme cam • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #86 · 27.02.2024 г., 22:28

¡New build available! #Matrixx | #diting Device: Xiaomi 12T Pro | Redmi K50 Ultra Sha256SUM:b00d7647df268e296e00adb68bfa31c4f9e2d00e235556c8e7b80ea7cd4791c1 Build Date:2024-02-27 Downloads: Link | Changelog: ROM LOG - import jemalloc and more My changes: -Port clo boost framework Notes • Gapps are included • FW included , meme cam • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #77 · 22.02.2024 г., 01:24

¡New build available! #Matrixx | #diting Device: Xiaomi 12T Pro | Redmi K50 Ultra Sha256SUM:c2df3d2103180b23600abd180a7edbd5fdc11b942800ee23e211b0ccaee194bc Build Date:2024-02-21 Downloads: Link | Changelog: ROM LOG Device changes: - Switch blobs to HyperOS CN miui_DITING_OS1.0.24.1.8.DEV_8704513c97_14.0.zip - Switch kernel and kernel modules too thnks to @Mohammadnt96 - some bug fixes Notes • Gapps are included • FW included , meme cam • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #75 · 17.02.2024 г., 13:34

¡New build available! #Matrixx | #diting Device: Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:16036f78859099e614976977cf85ea99 Build Date:2024-02-16 Downloads: Link | Changelog: ROM LOG Device changes: - Sync rom source - Add missing LDAC bluetooth codecs - Adjust vibration - User build - Fixup Dolby vision and some crashes caused by liboemcrypto Notes • Gapps are included • FW included , meme cam • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #73 · 10.02.2024 г., 16:37

¡New build available! #Matrixx | #diting Device: Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:2afc881bd13925af040f4c978086d4b2 Build Date:2024-02-10 Downloads: Link | Changelog: ROM LOG | Device changelog Notes • Gapps are included • FW included , meme cam • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #61 · 02.02.2024 г., 00:50

¡New build available! #Matrixx | #diting Device: Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:a9a8f235f3a97a076ff3271f145d62c9 Build Date:2024-02-01 Downloads: Link | Changelog: - Fixed eSIM issues (now eSIM should work without more problems) - Fixed recovery issues no more fstboot when u try to reboot to recovery - Fixed some internal crashes Notes • Gapps are included • FW included , meme cam • Remebering, Don't report bugs without logs. • CTS pass by default • Clean flash required Thnks to @Mohammadnt96 for help me with some ideas and tests. By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #59 · 31.01.2024 г., 21:04

¡New build available! #Matrixx | #diting Device: Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:092279a7fb682f4313d28c30385233df Build Date:2024-01-31 Downloads: Link | Changelog: - Sync with last source - Added fod fix for gtx8 - meme cam Notes • Gapps are included • FW included , meme cam • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #51 · 19.01.2024 г., 21:07

¡New build available! #Matrixx | #diting Device: Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:423c046d9878a3fc6ca7682639ee2ba1 Build Date:2024-01-19 Downloads: Link | Changelog:link Notes • Gapps are included • GTX8_SPI for not working • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #48 · 13.01.2024 г., 00:01

¡New build available! #Matrixx | #diting Device: Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:f576c0244e8cc653468173e082e9d96c Build Date:2024-01-12 Downloads: Link | Changelog: - Fixed codecs issues - Screenrecord issue was fixed - Netflix HDR is now working - Fixed Netflix play issue - revert some blobs to miui - Introduce displayfeature color service and use MIUI color modes - Set standard display color mode in AOD Notes • Gapps are included • GTX8_SPI for not working • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #42 · 29.12.2023 г., 03:17

¡New build available! #Matrixx | #diting Device:Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:35348bd7a59d0bf34e4219382862d476 Build Date:2023-12-27 Downloads: Link | Changelog: - Initial public release - Sepolicy enforcing Notes • Gapps are included • FOD Not working on gtx8_spi touch screen • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #286 · 11.03.2025 г., 05:57

#Matrixx#diting#A15 ProjectMatrixx 11.2.5 - UNOFFICIAL | Android 15 Build Date: 11/03/2025 ▪️Download: here ▪️Screenshots ▪️Source: Changelog Notes: • Sync last source • Integrity passing Credits: Thanks to @Mohammadnt96 and @TeamMEX_XDA By@Jezzay97 | Donate Follow@xiaomi_12tpro_updates Join@xiaomi12tpro_chat

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