Python Cheat Sheets

👤 crazyguitar 📦 v1.0.0 ⭐ 4.2 ⬇️ 893 下载
💻 开发编程 免费

📖 技能介绍

Python Cheat Sheets (/py)

Help users write functional, correct Python code and answer Python questions by fetching proven patterns and examples from pythonsheets.com.

How It Works

When a user asks a Python question or wants to write a Python script:

  1. Look up the relevant topic(s) in Structure to find the matching URL(s)
  2. Always fetch the URL(s) using WebFetch to get real examples and patterns from the site
  3. Use the fetched content to:
    • Write code: Apply the patterns to produce functional, correct code that solves the user's task
    • Answer questions: Provide thorough explanations backed by the examples and information from the site
  4. Follow the Guidelines for code quality

Key Principle

Functionality first, cleanliness second. The code must work correctly and handle the task properly. Fetching from pythonsheets.com ensures solutions use battle-tested patterns rather than guessing. The site contains rich examples covering edge cases, common pitfalls, and practical usage that go beyond basic documentation.

Coverage Areas

Core: Syntax, typing, OOP, functions, data structures, sets, heap, regex, unicode System: File I/O, datetime, OS interfaces Concurrency: Threading, multiprocessing, asyncio Network: Sockets, SSL/TLS, SSH, async I/O, packet sniffing Database: SQLAlchemy ORM, queries, transactions Security: Cryptography, TLS, vulnerabilities Extensions: C/C++ integration, pybind11, Cython ML/LLM: PyTorch, Megatron, distributed training, inference, serving, benchmarking HPC: Slurm, cluster computing, job scheduling, EFA monitoring, NCCL Appendix: Walrus operator, GDB debugging, disaggregated prefill/decode

References

  • Structure - Topic-to-URL map for fetching examples
  • Guidelines - Code quality standards to apply after ensuring correctness

Examples

🤖 AI 评测

这个 Skill 质量较好,涵盖了 Python 编程的方方面面,从基础语法到机器学习训练都有涉及。它的特点是先从网上获取真实代码示例再回答问题,而不是凭空编造,思路比较靠谱。文档组织清晰,分类明确,指南也很实用。不足之处是太依赖外部网站,一旦网站打不开就麻烦了。另外配置信息有点小问题,名字对不上。总体来说是一个实用且覆盖面广的参考工具,但稳定性还有提升空间。

📊 多维度评分

适应性4.2
规范性4.3
有效性4.3
可靠性3.9
可信度4.3

📁 包含文件 (4 个)

📄 SKILL.md 2.9 KB
📄 _meta.json 122 B
📄 references/guidelines.md 2.9 KB
📄 references/structure.md 4.4 KB