TGTGInsightinteligencia telegramLIVE / telegram public index
← Python Academy

TGINSIGHT SIMILAR POSTS

Buscar contenido similar

Canal fuente @python_academy · Post #1994 · 13 abr

Локализация в Python с помощью модуля gettext В процессе разработки программ иногда необходимо предоставить поддержку разных языков. Модуль gettext в Python предоставляет удобный механизм локализации, который позволяет адаптировать ваше приложение для различных языковых сообществ. Что такое gettext? gettext - это модуль Python, предназначенный для обеспечения поддержки интернационализации и локализации. Он позволяет создавать переводы строк на различные языки, обеспечивая легкость адаптации приложения под разные культурные контексты. Пример использования gettext: import gettext from pathlib import Path translations = gettext.translation('your_app', localedir=Path('locales'), languages=['ru']) translations.install() print(_("Hello, gettext!")) В данном примере мы используем модуль gettext для загрузки файлов перевода из директории 'locales' для русского языка. Функция _() используется для обозначения строк, подлежащих локализации. Создание файлов перевода: Для создания файлов перевода можно воспользоваться утилитой pybabel: pybabel extract -F babel.cfg -o messages.pot your_app pybabel init -i messages.pot -d locales -l ru gettext также предоставляет множество возможностей для более сложных сценариев локализации, таких как форматирование чисел, дат и поддержка множественных форм. #python#gettext#i18n

Resultados

1,006 posts similares encontrados

Búsqueda global general

djangoproject

@djangoproject · Post #486 · 31/10/2017, 19:49

https://intellipaat.com/tutorial/python-tutorial/ This #Python free tutorial is for beginners as an introduction to learn this powerful programming language. #learn

djangoproject

@djangoproject · Post #432 · 07/09/2017, 09:30

# In Python 3.4+ you can use # contextlib.suppress() to selectively # ignore specific exceptions: import contextlib with contextlib.suppress(FileNotFoundError): os.remove('somefile.tmp') # This is equivalent to: try: os.remove('somefile.tmp') except FileNotFoundError: pass # contextlib.suppress docstring: # # "Return a context manager that suppresses any # of the specified exceptions if they occur in the body # of a with statement and then resumes execution with # the first statement following the end of # the with statement." #python#learn

djangoproject

@djangoproject · Post #412 · 15/08/2017, 05:11

https://intellipaat.com/tutorial/python-tutorial/ Often, programmers fall for Python because of its minimum compilation time and speedier edit-test-debug cycle. Python is a go-programming language that has automated the way programmers code. This is indeed one of the major reasons developers have switched their interest to Python programming language. It helps you write simple scripts at relatively faster rate compared to Java, C, C++ . Get #Python Certification in just 16 Hours GET CERTIFIED #learn

djangoproject

@djangoproject · Post #284 · 31/03/2017, 06:53

http://docs.python-guide.org/en/latest/ Greetings, Earthling! Welcome to The Hitchhiker’s Guide to Python. This is a living, breathing guide. If you’d like to contribute, fork us on GitHub! This handcrafted guide exists to provide both novice and expert Python developers a best practice handbook to the installation, configuration, and usage of Python on a daily basis. This guide is opinionated in a way that is almost, but not quite, entirely unlike Python’s official documentation. You won’t find a list of every #Python web framework available here. Rather, you’ll find a nice concise list of highly recommended options. #learn

Data Science Jobs

@datasciencejobs · Post #1702 · 29/09/2023, 06:02

#vacancy#вакансия#python#data engineer #remote Компания Swift Invention ищет разработчиков: https://www.swiftinvention.com/#/ Data Engineer (Python) Full-time Remote 4000-5000USD Required skills: - 3+ years of work experience in developing data-related solutions - Strong background in Python for data collecting and analysis - Experience with building and maintaining web scrapers (data mining) - Experience with preparing data for machine learning (ETL) - Experience with relational databases (SQLite/MySQL/PostgreSQL) - Bachelor’s degree or higher in computer science or a related field Desired skills: - Understanding of data modeling concepts - Experience with creating ML data for text classification - Experience with cloud computing platforms (e.g., AWS, Azure, GCP) We offer: - Paid time off (24 working days per year) - Equipment: MacBook Pro or Dell laptop (m1, m2, i7, 16/32GB RAM) - Flexible working hours About the project: Pakira is a SaaS industry directory, chat, forum, and order tracking for businesses in the wholesale wood industry. Contacts: [email protected] tg @HelenSwiftInv

飞鱼资源库

@feiyu4567 · Post #454 · 01/01/2026, 12:51

▎SmartPacker V9.2 python超超简单智能编译工具 , 将你的py程序编辑成exe软件,图标直接设置图片即可。 如果用ai编程的话,让ai给你写个打包的也可以勉强用,不过问题还是有,需要调试。这个就挺好了。 #工具#python#打包#编译

theBlock

@theBlockClub · Post #170 · 15/12/2022, 01:00

📰 Notion「块」讯 - 2022年12月15日 #news#i18n#database#integration 1⃣️ Notion 新增德语支持,包含应用 UI、模板、帮助中心、网站、新用户导航和营销内容等 2⃣️ 数据库列表视图支持可视化显示 sub-items 子项目(最多十层),需自行建立 self-relation 关联。该功能将于近日全量推送 3⃣️ 申请过 Notion AI 内测的用户已经开始收到测试邀请,欢迎大家前往 AI 话题专区 讨论 4⃣️ Notion + Slack 整合更新,现在可以直接在 Slack 应用里创建新页面、预览页面内容和更改页面访问权限 (详情:http://ntn.so/slack ) 🧱@theBlockClub, all about Notion.

ALL About RSS

@AboutRss · Post #565 · 04/05/2020, 12:55

推友 #RSS2MAIL#技巧 #Python 脚本每日抓取RSS并定时发送汇总邮件 https://www.sharpgan.com/receive-email-from-solidot-ithome-linuxcn/ 题图和日志来自于 https://twitter.com/supersu097/status/1256844661139795968

Analytics and growth mindset ️

@thinkbroadly · Post #11 · 22/05/2024, 06:12

🔥 Learn Python for Data Analysis: Easy Self-Study Roadmap I made 2 diagrams☝️to help beginners who want to learn Python for data analysis on their own. _____________________________________ #DataAnalyst#DataAnalytics#DataAnalysis#data_analyst#python If you like this type of content, hit 🔥. Give a FREE BOOST to My Channel https://t.me/boost/thinkbroadly

The Devs

@thedevs · Post #1656 · 09/01/2020, 17:35

WTF Python. Exploring and understanding Python through surprising snippets. #resources#tutorial#python @thedevs https://kutt.it/qEYcPe

12•••5•••10•••15•••20•••25•••303132333435•••40•••45•••50•••55•••60•••65•••70•••75•••80•••8384