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

Резултати

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

Пребарај: #texto

当前筛选 #texto清除筛选
BotsGram®

@botsgram_cu · Post #3743 · 31.03.2021 г., 13:57

¿Que puede hacer este bot? @QuotAfBot Crea pegatinas animadas con un texto que le envíes Idiomas: varios incluido español (Visto en @botsgram_cu) #stickers#texto

BotsGram®

@botsgram_cu · Post #4296 · 26.08.2021 г., 17:46

¿Que puede hacer este bot? @WebScrapperRoBot Con este bot puedes obtener todo el texto de un sitios web Idiomas: inglés (Visto en @botsgram_cu) #web#texto

Hashtags

BotsGram®

@botsgram_cu · Post #3093 · 27.10.2020 г., 02:57

¿Que puede hacer este bot? @TextChangerBot Un bot para convertir texto a varias fuentes. Perfecto para configurar perfiles en redes sociales, apodos para juegos y más. Idioma: ruso (Visto en @botsgram_cu) #texto#fuentes

BotsGram®

@botsgram_cu · Post #3061 · 11.10.2020 г., 05:40

¿Que puede hacer este bot? @COOLTEXTGENERATORBOT Bot para decorar y darle estilo al texto en muchas fuentes Idiomas: inglés (Visto en @botsgram_cu) #fuentes#texto

BotsGram®

@botsgram_cu · Post #4473 · 31.10.2021 г., 03:27

¿Que puede hacer este bot? @TypographicBot Este bot puede cambiar la tipografía de los mensajes que le envías Idiomas: inglés (Visto en @botsgram_cu) #texto#estilo

BotsGram®

@botsgram_cu · Post #4048 · 24.06.2021 г., 17:15

¿Que puede hacer este bot? @TheCarbonShBot Crea y comparte hermosas imágenes de su código fuente. Envíele un fragmento de código y le responderá con una bonita imagen de ese código. Idioma: inglés (soporta cualquier idioma en la conversión) (Visto en @botsgram_cu) #texto#fuente

BotsGram®

@botsgram_cu · Post #3946 · 27.05.2021 г., 15:19

¿Que puede hacer este bot? @BettergramBot Crea textos creativos con fuentes personalizadas. Idiomas: inglés (Visto en @botsgram_cu) #texto#fuente

BotsGram®

@botsgram_cu · Post #3738 · 30.03.2021 г., 18:54

¿Que puede hacer este bot? @MasquerBot Este bot utiliza un algoritmo de cifrado de última generación y manipulación de píxeles para enmascarar cualquier texto dentro de cualquier imagen dada. Idioma: inglés (Visto en @botsgram_cu) #edición#fotos#texto

BotsGram®

@botsgram_cu · Post #4002 · 10.06.2021 г., 13:19

¿Que puede hacer este bot? @bacakubot Con este bot podrás extraer texto de una imagen o foto y traducirlo a cualquier idioma Idiomas: inglés (Visto en @botsgram_cu) #texto#imágenes#traductor

BotsGram®

@botsgram_cu · Post #4903 · 06.09.2023 г., 13:44

¿Que puede hacer este bot? 🤖@IMG2TEXTBot 📎Este bot utiliza el reconocimiento óptico de caracteres (OCR) para detectar texto en imágenes. #Imagen#texto#IA ( Visto en: @BotsGram_Cu )

BotsGram®

@botsgram_cu · Post #4950 · 29.03.2024 г., 13:02

¿Qué puede hacer este bot? 🤖@Ai_Text2Speechbot Es una herramienta fácil de usar que transforma texto escrito en audio hablado. Utiliza algoritmos avanzados de síntesis de voz para generar un habla precisa y con un sonido natural con gran variedad de acentos, para que puedas disfrutar de una experiencia auditiva de alta calidad. Además, es fácil de usar: simplemente envíe un texto escrito al bot y generará un archivo de audio en segundos. Idiomas: Más de 50 idiomas #ia#tts#voz#texto (Visto en @BotsGram_Cu)

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