python

Back Open Paginator
23.09.2025 15:12
habr (@habr@zhub.link)

Изучаем Python: модуль os для начинающих с практическим домашним заданием

Разбираем один из самых полезных встроенных модулей Python — os. Простыми словами о том, как управлять файлами и папками прямо из кода. Пройдем путь от os.mkdir() до написания скрипта для автоматической сортировки. Статья для начинающих, но с упором на практику. В финале — домашнее задание на GitHub с автоматической проверкой решений.

habr.com/ru/articles/949676/

#python #os #python_для_начинающих #работа_с_файлами_в_python #работа_с_файлами #скрипты_на_python #сортировка_файлов




Show Original Post


23.09.2025 14:51
Python4DataScience (@Python4DataScience@mastodon.social)

Since we have recently been asked frequently whether pandas is slow and whether we should use Polars, Dask or DuckDB instead, we have now provided an initial overview of the various technologies: python4data.science/en/latest/




Show Original Post


23.09.2025 13:55
qiita (@qiita@rss-mstdn.studiofreesia.com)

PyQt6で作るYOLO動画ラベリングツール
qiita.com/hiro134103/items/07c

#qiita #Python #Qt #YOLO




Show Original Post


23.09.2025 13:54
qiita (@qiita@rss-mstdn.studiofreesia.com)

AtCoder ABC 424 解いてみた (PythonでABC問題)
qiita.com/tototti/items/8adb9a

#qiita #Python #アルゴリズム #AtCoder #競技プログラミング #競プロ




Show Original Post


23.09.2025 13:00
pyconafrica (@pyconafrica@mastodon.social)

🌍 We’re proud to have Asuer as a sponsor for PyCon Africa 2025!
Their support helps us bring the Python community together to learn, share, and grow. 🐍✨

Learn more: asuer.co.za





Show Original Post


23.09.2025 12:51
bterwijn (@bterwijn@fosstodon.org)

Some struggle with recursion, but as package invocation\_tree visualizes the Python call tree in real-time, it gets easy to understand what is going on and to debug any remaining issues.

See this one-click Quick Sort demo in the Invocation Tree Web Debugger:
invocation-tree.com/#codeurl=h

#python #programming #invocation_tree #quicksort





Show Original Post


23.09.2025 12:51
mdione (@mdione@en.osm.town)

A coworker wrote:

```
(run_dir / "metrics").mkdir(exist_ok=True)
```

where `rundir` is a `pathlib.Path`. I understand that from the OO POV this is right, but for someone using non-Smalltalk languages for ~30y now it feels weird. `os.mkdir` accepts `pl.Path` objects, but does not accept `exist_ok` (which BTW is a horrible name :), so it has to be `os.makedirs()` instead.

So, the alternatives seem to be the ones below.

#Python

(run_dir / "metrics").mkdir(exist_ok=True)
os.makedirs(run_dir / "metrics", exist_ok=True)
from os import makedirs as mkdir (see below)
mkdir(run_dir / "metrics", exist_ok=True)




Show Original Post


23.09.2025 12:39
EngineerDaryl (@EngineerDaryl@fosstodon.org)

Starting to understand Template strings in Python 3.14. not sure when I would need it, but I felt the same when I first learned about comprehensions or Python decorators.

#python #coding




Show Original Post


23.09.2025 12:35
ros (@ros@techhub.social)

Implementing Telegram Bot in Python and Javascript with deployment to AWS
glukhov.org/post/2025/09/imple
#Telegram #Bot #Python #Javascript #AWS




Show Original Post


23.09.2025 12:08
pypodcats (@pypodcats@fosstodon.org)

Sneak peek into our 10th episode of Hidden Figures of Python!

Meet Una Galyeva!

With over 19 years of experience in Data and AI, Una Galyeva held various positions, from hands-on Data and AI development to leading Data and AI teams and departments. She is a driving force behind #PyLadiesAmsterdam, a Microsoft MVP, AI4ALL Advisory board member, and the owner of AI MLOps Agency.

Hosts: @cheukting_ho & @mariatta

#Python #HiddenFiguresOfPython #thePSF #DiversityAndInclusion





Show Original Post


23.09.2025 12:06
aldil (@aldil@framapiaf.org)

@courtbouillon @CauseCommune @fcodvpt Pour les auditrices et les auditeurs de la région de #lyon nous reprenons justement nos ateliers de découverte de #python et autres langages de programmation libres ce jeudi.
Toutes les infos ici : aldil.org/events/jeudi-program




Show Original Post


23.09.2025 11:41
halcy (@halcy@icosahedron.website)

Mastodon.py 2.1.4, with some fixes from @thcrt to type annotations, and for login on instances where .well-known 404s are not real 404s (observed on at least one Akkoma instance)

Thank you for the contributions! <3

github.com/halcy/Mastodon.py/r

#mastodonpy #python #mastodev




Show Original Post


1 ...1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 ...1555
UP