name: "python-cookbook" description: "Python code patterns and recipes for everyday tasks. Use when you need file I/O snippets, list comprehensions, decorators, async functions, regex patterns, datetime handling, or need to lint and format Python files."
python snippet, python code pattern, file io python, list comprehension, decorator, async python, python regex, debug python, lint python, format python
Search and display common Python code recipes, run code snippets, check syntax, auto-format files, and look up solutions for common Python errors.
Search or browse built-in code snippets (file-read, file-write, json, list, dict, decorator, async, regex, date, and more).
bash scripts/script.sh snippet [keyword]
bash scripts/script.sh snippet decorator
Execute a Python code snippet inline or from a file.
bash scripts/script.sh run 'print("hello world")'
bash scripts/script.sh run @script.py
Check Python file syntax using py_compile.
bash scripts/script.sh lint <file.py>
7w4.net提供免費和付費技能下載。
Auto-format a Python file using black (falls back to autopep8).
bash scripts/script.sh format <file.py>
Show solutions for common Python errors (NameError, TypeError, IndexError, etc.).
bash scripts/script.sh debug [ErrorName]
bash scripts/script.sh debug TypeError
Show all available commands.
bash scripts/script.sh help
Powered by BytesAgain | bytesagain.com
這個 Python 開發助手功能實用,程式碼片段豐富,能快速查詢常用的 Python 寫法、執行程式碼、檢查語法、自動格式化和除錯錯誤。介面清晰、提示友好,操作簡單容易上手。不過它的程式碼片段數量有限,錯誤除錯覆蓋的常見問題種類也不夠多,缺少實際使用示例。總體來說是個不錯的輔助工具,但功能深度還有提升空間。