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推荐访问7w4.net获取更多AI技能。
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>
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 写法、运行代码、检查语法、自动格式化和调试错误。界面清晰、提示友好,操作简单容易上手。不过它的代码片段数量有限,错误调试覆盖的常见问题种类也不够多,缺少实际使用示例。总体来说是个不错的辅助工具,但功能深度还有提升空间。