python

Back Open Paginator
28.09.2025 02:00
qiita (@qiita@rss-mstdn.studiofreesia.com)

開発を効率化するPython自動整形ツール:`flake8`と`Black`
qiita.com/KivoraX/items/452a72

#qiita #Python #Flake #Black




Show Original Post


28.09.2025 01:40
donkirkby (@donkirkby@hachyderm.io)

I love it when you find the right algorithm. I've been working on a #Python project to cover a crossword grid with Tetris blocks, and I used evolutionary search, because I couldn't think of anything better. Then recently, I learned about Knuth's dancing links and exact cover algorithm. I even found a couple of Python implementations.
The new algorithm dropped my search time from hours to milliseconds.
github.com/miniexact/miniexact




Show Original Post


28.09.2025 01:25
treyhunner (@treyhunner@mastodon.social)

Some tips on implementing tech hangs.

@brettcannon's "came for the language and stayed for the community" was quoted by @LauraLangdon and also discussed by folks during at least one of the breaks.

💗 This is a great community





Show Original Post


28.09.2025 01:17
GripNews (@GripNews@mastodon.social)

🌗 為何今日的 Python 開發者擁抱型別提示
➤ 擁抱漸進式型別系統,提升 Python 程式碼品質與可維護性
pyrefly.org/blog/why-typed-pyt
Python 的彈性使其廣受歡迎,尤其是在 AI 和數據科學領域。然而,隨著專案規模擴大並進入生產環境,動態型別的潛在風險也隨之增加。Python 3.5 引入的 PEP 484 透過型別提示,為 Python 帶來了漸進式的靜態型別系統。開發者可以逐步添加型別註釋,利用工具在開發早期捕捉錯誤,提高程式碼的可讀性和可維護性,並協助專案從概念驗證順利過渡到生產級應用。
+ 這篇文章解釋得很好,我一直覺得 Python 的動態型別雖然方便,但大型專案真的容易出錯。現在終於瞭解 PEP 484 的重要性了!
+ 太好了!我正想導入型別提示,這篇文章正好解答了我很多疑問,特別是關於如何逐步採用,不會影響現有程式碼。
484




Show Original Post


28.09.2025 00:50
h4ckernews (@h4ckernews@mastodon.social)

Why Today's Python Developers Are Embracing Type Hints

pyrefly.org/blog/why-typed-pyt




Show Original Post


28.09.2025 00:31
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

Why Today's Python Developers Are Embracing Type Hints

pyrefly.org/blog/why-typed-pyt




Show Original Post


27.09.2025 23:33
villares (@villares@ciberlandia.pt)

#Python is for artists too!

I made some #Python #numpy, #shapely, #trimesh & #py5bot stickers!

PS: I asked the PSF to check if the logos were alright: "you can change the colors and add thing inside, but not change the shape or position of the snakes". So I had to change my original Python reading club logo...





Show Original Post


27.09.2025 22:45
leanpub (@leanpub@mastodon.social)

Python Basics leanpub.com/b/pythonbasics by Michael Driscoll is the featured bundle of ebooks 📚 on the Leanpub homepage! leanpub.com

Get Python 101 (2nd Edition) and its sequel, Python 201: Intermediate Python

Find it on Leanpub!




Show Original Post


27.09.2025 22:10
willmcgugan (@willmcgugan@mastodon.social)

I recorded a video...

Generating mandelbrot sets with Toad and Gemini CLI!

youtube.com/watch?v=TzBLW2eFmag




Show Original Post


27.09.2025 21:54
darbales (@darbales@rollenspiel.social)

import numpy
import numpy as np
x = np.array(42)
print("x: ", x)
print("Der Typ von x:", type(x))
print("Die Dimension von x:", np.ndim(x))
Übungscode #python des Tages.
Ich lerne unter anderem mit dem Buch Numerisches Python, habe den Code nach Buchvorlage abgeschrieben.




Show Original Post


27.09.2025 20:57
treyhunner (@treyhunner@mastodon.social)

Resources for creating packages





Show Original Post


27.09.2025 20:46
treyhunner (@treyhunner@mastodon.social)

A PSA to use pyproject.toml instead of setup.py for project metadata 📣





Show Original Post


1 ...1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 ...1557
UP