@amneumarkt · Post #381 · 21/07/2022, 21:04
#python Guidelines for research coding. It is not the highest standard but is easy to follow. https://goodresearch.dev/
Hashtags
TGINSIGHT SIMILAR POSTS
Canal fuente @python_academy · Post #2087 · 10 jul
Управление лимитом рекурсии в Python В Python отсутствует оптимизация хвостовой рекурсии, что часто приводит к ошибке RecursionError при разработке рекурсивных алгоритмов. Однако, используя модуль sys, можно узнать и даже изменить максимально допустимую глубину рекурсии. Несмотря на это, следует быть осторожным с увеличением лимита, так как каждый вызов рекурсии потребляет значительное количество памяти. В большинстве случаев предпочтительнее использовать итеративные подходы, такие как циклы, вместо рекурсии. #python#recursion
Hashtags
Búsqueda global general
@amneumarkt · Post #381 · 21/07/2022, 21:04
#python Guidelines for research coding. It is not the highest standard but is easy to follow. https://goodresearch.dev/
Hashtags
@amneumarkt · Post #356 · 14/05/2022, 11:46
#python This post is a retro on how I learned Python. Disclaimer: I can not claim that I am a master of Python. This post is a retrospective of how I learned Python in different stages. I started using Python back in 2012. Before this, I was mostly a Matlab/C user. Python is easy to get started, yet it is hard to master. People coming from other languages can easily make it work but will write some "disgusting" python code. And this is because Python people talk about "pythonic" all the time. Instead of being an actual style guide, it is rather a philosophy of styles. When we get started, we are most likely not interested in [PEP8](https://peps.python.org/pep-0008/) and [PEP257](https://peps.python.org/pep-0257/). Instead, we focus on making things work. After some lectures from the university (or whatever sources), we started to get some sense of styles. Following these lectures, people will probably write code and use Python in some projects. Then we began to realize that Python is strange, sometimes even doesn't make sense. Then we started leaning about the philosophy behind it. At some point, we will get some peer reviews and probably fight against each other on some philosophies we accumulated throughout the years. The attached drawing (in comments) somehow captures this path that I went through. It is not a monotonic path of any sort. This path is most likely to be permutation invariant and cyclic. But the bottom line is that mastering Python requires a lot of struggle, fights, and relearning. And one of the most effective methods is peer review, just as in any other learning task in our life. Peer review makes us think, and it is very important to find some good reviewers. Don't just stay in a silo and admire our own code. To me, the whole journey helped me building one of the most important philosophies of my life: embrace open source and collaborate.
Hashtags
@amneumarkt · Post #349 · 03/05/2022, 06:12
#python Anaconda open sourced this... I have no idea what this is for... https://github.com/pyscript/pyscript
Hashtags
@amneumarkt · Post #322 · 03/03/2022, 07:29
#python I find poetry a great tool to manage Python requirements. I used to manage Python requirements using requirements.txt(environment.yaml) and install them using pip(conda). The thing is, in this stack, we have to pin the version ranges manually. It is quite tedious, and we easily run into version problems for a large project. Poetry is the savior here. When developing a package, we add some initial dependencies to the pyproject.yaml, a PEP standard. Whenever a new package is needed, we run poetry add package-name. Poetry tries to figure out the compatible versions. A lock file for the dependencies with restricted versions will be created or updated. To recreate an identical python environment, we only need to run poetry install. There's one drawback and may be quite painful at some point. Recreating the lock file for dependencies is extremely slow when the complexity grows in the requirements. But this is not a problem if poetry but rather constraints from pypi. One solution to this problem is to use cache. https://python-poetry.org/
Hashtags
@amneumarkt · Post #311 · 17/01/2022, 21:15
#python I thought it was a trivial talk in the beginning. But I quickly realized that I may know every each piece of the code mentioned in the video but the philosophy is what makes it exciting. He talked about some fundamental ideas of Python, e.g., protocols. After watching this video, an idea came to me. Pytorch lightning has implanted a lot of hooks in a very pythonic way. This is what makes pytorch lightning easy to use. (So if you do a lot of machine learning experiments, pytorch lightning is worth a try.) https://youtu.be/cKPlPJyQrt4
Hashtags
Python细节 #python
Hashtags
#python
Hashtags
https://py.checkio.org/ Python编程训练 #python
Hashtags
@tg_infosec · Post #3472 · 13/08/2025, 16:32
👩💻 Python для сетевых инженеров. • Python уверенно лидирует в рейтингах популярности языков программирования, и не зря — на этом языке можно решать самые разные задачи и при этом сильно экономить время. Я нашел очень полезную книгу, в которой рассматриваются основы Python с примерами и заданиями построенными на сетевой тематике. Надеюсь, что многим из Вас пригодится данный материал и поможет приступить к изучению этого языка программирования. • Книгу можно читать в онлайне (по ссылкам ниже), либо скачать в удобном формате и на разных языках: • Основы Python: ➡Подготовка к работе; ➡Использование Git и GitHub; ➡Начало работы с Python; ➡Типы данных в Python; ➡Создание базовых скриптов; ➡Контроль хода программы; ➡Работа с файлами; ➡Полезные возможности и инструменты. • Повторное использование кода: ➡Функции; ➡Полезные функции; ➡Модули; ➡Полезные модули; ➡Итераторы, итерируемые объекты и генераторы. • Регулярные выражения: ➡Синтаксис регулярных выражений; ➡Модуль re. • Запись и передача данных: ➡Unicode; ➡Работа с файлами в формате CSV, JSON, YAML. • Работа с сетевым оборудованием: ➡Подключение к оборудованию; ➡Одновременное подключение к нескольким устройствам; ➡Шаблоны конфигураций с Jinja2; ➡Обработка вывода команд TextFSM. • Основы объектно-ориентированного программирования: ➡Основы ООП; ➡Специальные методы; ➡Наследование. • Работа с базами данных: ➡Работа с базами данных. • Дополнительная информация: ➡Модуль argparse; ➡Форматирование строк с оператором %; ➡Соглашение об именах; ➡Подчеркивание в именах; ➡Отличия Python 2.7 и Python 3.6; ➡Проверка заданий с помощью утилиты pyneng; ➡Проверка заданий с помощью pytest; ➡Написание скриптов для автоматизации рабочих процессов; ➡Python для автоматизации работы с сетевым оборудованием; ➡Python без привязки к сетевому оборудованию. #Python
Hashtags
@hezuclub · Post #1709 · 10/01/2026, 23:50
Python Flask 高级编程之从0到1开发《鱼书》 精品项目 🧲https://hi189.com/4802.html #python
Hashtags
@hezuclub · Post #1705 · 08/01/2026, 23:41
30个小时搞定Python网络爬虫(全套详细版) 🧲https://hi189.com/4783.html #python
Hashtags
@hezuclub · Post #1550 · 05/12/2025, 14:13
Python 零基础入门移动端爬虫班:从编程到 App 逆向,系统掌握数据采集核心技术! 🧲https://hi189.com/3918.html #Python
Hashtags