← 返回 Skills 市场
dolantan548-cmd

python-code-pep8-style

作者 dolantan548-cmd · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
284
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install python-code-guide-skill
功能描述
Apply PEP 8 Python code style standards when writing, reviewing, or refactoring Python code. Use this skill when the user asks to enforce Python coding style...
使用说明 (SKILL.md)

\r \r This skill encodes the official Python code style standards from PEP 8. When applied, Claude enforces these rules for all Python code — covering layout, whitespace, naming, comments, and programming best practices.\r \r The user may ask for code review, generation, refactoring, or style compliance checking. Apply whichever sections are relevant.\r \r \r Code Lay-out\r ============\r \r Indentation\r -----------\r \r Use 4 spaces per indentation level.\r \r Continuation lines should align wrapped elements either vertically\r using Python's implicit line joining inside parentheses, brackets and\r braces, or using a hanging indent [#fn-hi]_. When using a hanging\r indent the following should be considered; there should be no\r arguments on the first line and further indentation should be used to\r clearly distinguish itself as a continuation line:\r \r .. code-block::\r :class: good\r \r

Correct:\r

\r

Aligned with opening delimiter.\r

foo = long_function_name(var_one, var_two,\r var_three, var_four)\r \r

Add 4 spaces (an extra level of indentation) to distinguish arguments from the rest.\r

def long_function_name(\r var_one, var_two, var_three,\r var_four):\r print(var_one)\r \r

Hanging indents should add a level.\r

foo = long_function_name(\r var_one, var_two,\r var_three, var_four)\r \r .. code-block::\r :class: bad\r \r

Wrong:\r

\r

Arguments on first line forbidden when not using vertical alignment.\r

foo = long_function_name(var_one, var_two,\r var_three, var_four)\r \r

Further indentation required as indentation is not distinguishable.\r

def long_function_name(\r var_one, var_two, var_three,\r var_four):\r print(var_one)\r \r The 4-space rule is optional for continuation lines.\r \r Optional:\r \r .. code-block::\r :class: good\r \r

Hanging indents may be indented to other than 4 spaces.\r

foo = long_function_name(\r var_one, var_two,\r var_three, var_four)\r \r .. _multiline if-statements:\r \r When the conditional part of an if-statement is long enough to require\r that it be written across multiple lines, it's worth noting that the\r combination of a two character keyword (i.e. if), plus a single space,\r plus an opening parenthesis creates a natural 4-space indent for the\r subsequent lines of the multiline conditional. This can produce a visual\r conflict with the indented suite of code nested inside the if-statement,\r which would also naturally be indented to 4 spaces. This PEP takes no\r explicit position on how (or whether) to further visually distinguish such\r conditional lines from the nested suite inside the if-statement.\r Acceptable options in this situation include, but are not limited to:\r \r .. code-block::\r :class: good\r \r

No extra indentation.\r

if (this_is_one_thing and\r that_is_another_thing):\r do_something()\r \r

Add a comment, which will provide some distinction in editors\r

supporting syntax highlighting.\r

if (this_is_one_thing and\r that_is_another_thing):\r # Since both conditions are true, we can frobnicate.\r do_something()\r \r

Add some extra indentation on the conditional continuation line.\r

if (this_is_one_thing\r and that_is_another_thing):\r do_something()\r \r (Also see the discussion of whether to break before or after binary\r operators below.)\r \r The closing brace/bracket/parenthesis on multiline constructs may\r either line up under the first non-whitespace character of the last\r line of list, as in:\r \r .. code-block::\r :class: good\r \r my_list = [\r 1, 2, 3,\r 4, 5, 6,\r ]\r result = some_function_that_takes_arguments(\r 'a', 'b', 'c',\r 'd', 'e', 'f',\r )\r \r or it may be lined up under the first character of the line that\r starts the multiline construct, as in:\r \r .. code-block::\r :class: good\r \r my_list = [\r 1, 2, 3,\r 4, 5, 6,\r ]\r result = some_function_that_takes_arguments(\r 'a', 'b', 'c',\r 'd', 'e', 'f',\r )\r \r Tabs or Spaces?\r ---------------\r \r Spaces are the preferred indentation method.\r \r Tabs should be used solely to remain consistent with code that is\r already indented with tabs.\r \r Python disallows mixing tabs and spaces for indentation.\r \r \r Maximum Line Length\r -------------------\r \r Limit all lines to a maximum of 79 characters.\r \r For flowing long blocks of text with fewer structural restrictions\r (docstrings or comments), the line length should be limited to 72\r characters.\r \r Limiting the required editor window width makes it possible to have\r several files open side by side, and works well when using code\r review tools that present the two versions in adjacent columns.\r \r The default wrapping in most tools disrupts the visual structure of the\r code, making it more difficult to understand. The limits are chosen to\r avoid wrapping in editors with the window width set to 80, even\r if the tool places a marker glyph in the final column when wrapping\r lines. Some web based tools may not offer dynamic line wrapping at all.\r \r Some teams strongly prefer a longer line length. For code maintained\r exclusively or primarily by a team that can reach agreement on this\r issue, it is okay to increase the line length limit up to 99 characters,\r provided that comments and docstrings are still wrapped at 72\r characters.\r \r The Python standard library is conservative and requires limiting\r lines to 79 characters (and docstrings/comments to 72).\r \r The preferred way of wrapping long lines is by using Python's implied\r line continuation inside parentheses, brackets and braces. Long lines\r can be broken over multiple lines by wrapping expressions in\r parentheses. These should be used in preference to using a backslash\r for line continuation.\r \r Backslashes may still be appropriate at times. For example, long,\r multiple with-statements could not use implicit continuation\r before Python 3.10, so backslashes were acceptable for that case:\r \r .. code-block::\r :class: maybe\r \r with open('/path/to/some/file/you/want/to/read') as file_1, \r open('/path/to/some/file/being/written', 'w') as file_2:\r file_2.write(file_1.read())\r \r (See the previous discussion on multiline if-statements_ for further\r thoughts on the indentation of such multiline with-statements.)\r \r Another such case is with assert statements.\r \r Make sure to indent the continued line appropriately.\r \r \r .. _pep8-operator-linebreak:\r \r Should a Line Break Before or After a Binary Operator?\r ------------------------------------------------------\r \r For decades the recommended style was to break after binary operators.\r But this can hurt readability in two ways: the operators tend to get\r scattered across different columns on the screen, and each operator is\r moved away from its operand and onto the previous line. Here, the eye\r has to do extra work to tell which items are added and which are\r subtracted:\r \r .. code-block::\r :class: bad\r \r

Wrong:\r

operators sit far away from their operands\r

income = (gross_wages +\r taxable_interest +\r (dividends - qualified_dividends) -\r ira_deduction -\r student_loan_interest)\r \r To solve this readability problem, mathematicians and their publishers\r follow the opposite convention. Donald Knuth explains the traditional\r rule in his Computers and Typesetting series: "Although formulas\r within a paragraph always break after binary operations and relations,\r displayed formulas always break before binary operations" [3]_.\r \r Following the tradition from mathematics usually results in more\r readable code:\r \r .. code-block::\r :class: good\r \r

Correct:\r

easy to match operators with operands\r

income = (gross_wages\r + taxable_interest\r + (dividends - qualified_dividends)\r - ira_deduction\r - student_loan_interest)\r \r In Python code, it is permissible to break before or after a binary\r operator, as long as the convention is consistent locally. For new\r code Knuth's style is suggested.\r \r Blank Lines\r -----------\r \r Surround top-level function and class definitions with two blank\r lines.\r \r Method definitions inside a class are surrounded by a single blank\r line.\r \r Extra blank lines may be used (sparingly) to separate groups of\r related functions. Blank lines may be omitted between a bunch of\r related one-liners (e.g. a set of dummy implementations).\r \r Use blank lines in functions, sparingly, to indicate logical sections.\r \r Python accepts the control-L (i.e. ^L) form feed character as\r whitespace; many tools treat these characters as page separators, so\r you may use them to separate pages of related sections of your file.\r Note, some editors and web-based code viewers may not recognize\r control-L as a form feed and will show another glyph in its place.\r \r Source File Encoding\r --------------------\r \r Code in the core Python distribution should always use UTF-8, and should not\r have an encoding declaration.\r \r In the standard library, non-UTF-8 encodings should be used only for\r test purposes. Use non-ASCII characters sparingly, preferably only to\r denote places and human names. If using non-ASCII characters as data,\r avoid noisy Unicode characters like z̯̯͡a̧͎̺l̡͓̫g̹̲o̡̼̘ and byte order\r marks.\r \r All identifiers in the Python standard library MUST use ASCII-only\r identifiers, and SHOULD use English words wherever feasible (in many\r cases, abbreviations and technical terms are used which aren't\r English).\r \r Open source projects with a global audience are encouraged to adopt a\r similar policy.\r \r Imports\r -------\r \r

  • Imports should usually be on separate lines:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    import os\r import sys\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    import sys, os\r \r \r It's okay to say this though:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    from subprocess import Popen, PIPE\r \r
  • Imports are always put at the top of the file, just after any module\r comments and docstrings, and before module globals and constants.\r \r Imports should be grouped in the following order:\r \r
    1. Standard library imports.\r
    2. Related third party imports.\r
    3. Local application/library specific imports.\r \r You should put a blank line between each group of imports.\r \r
  • Absolute imports are recommended, as they are usually more readable\r and tend to be better behaved (or at least give better error\r messages) if the import system is incorrectly configured (such as\r when a directory inside a package ends up on sys.path):\r \r .. code-block::\r :class: good\r \r import mypkg.sibling\r from mypkg import sibling\r from mypkg.sibling import example\r \r However, explicit relative imports are an acceptable alternative to\r absolute imports, especially when dealing with complex package layouts\r where using absolute imports would be unnecessarily verbose:\r \r .. code-block::\r :class: good\r \r from . import sibling\r from .sibling import example\r \r Standard library code should avoid complex package layouts and always\r use absolute imports.\r \r
  • When importing a class from a class-containing module, it's usually\r okay to spell this:\r \r .. code-block::\r :class: good\r \r from myclass import MyClass\r from foo.bar.yourclass import YourClass\r \r If this spelling causes local name clashes, then spell them explicitly:\r \r .. code-block::\r :class: good\r \r import myclass\r import foo.bar.yourclass\r \r and use myclass.MyClass and foo.bar.yourclass.YourClass.\r \r
  • Wildcard imports (from \x3Cmodule> import *) should be avoided, as\r they make it unclear which names are present in the namespace,\r confusing both readers and many automated tools. There is one\r defensible use case for a wildcard import, which is to republish an\r internal interface as part of a public API (for example, overwriting\r a pure Python implementation of an interface with the definitions\r from an optional accelerator module and exactly which definitions\r will be overwritten isn't known in advance).\r \r When republishing names this way, the guidelines below regarding\r public and internal interfaces still apply.\r \r Module Level Dunder Names\r -------------------------\r \r Module level "dunders" (i.e. names with two leading and two trailing\r underscores) such as __all__, __author__, __version__,\r etc. should be placed after the module docstring but before any import\r statements except from __future__ imports. Python mandates that\r future-imports must appear in the module before any other code except\r docstrings:\r \r .. code-block::\r :class: good\r \r """This is the example module.\r \r This module does stuff.\r """\r \r from future import barry_as_FLUFL\r \r all = ['a', 'b', 'c']\r version = '0.1'\r author = 'Cardinal Biggles'\r \r import os\r import sys\r \r \r String Quotes\r =============\r \r In Python, single-quoted strings and double-quoted strings are the\r same. This PEP does not make a recommendation for this. Pick a rule\r and stick to it. When a string contains single or double quote\r characters, however, use the other one to avoid backslashes in the\r string. It improves readability.\r \r For triple-quoted strings, always use double quote characters to be\r consistent with the docstring convention in :pep:257.\r \r \r Whitespace in Expressions and Statements\r ========================================\r \r Pet Peeves\r ----------\r \r Avoid extraneous whitespace in the following situations:\r \r
  • Immediately inside parentheses, brackets or braces:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    spam(ham[1], {eggs: 2})\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    spam( ham[ 1 ], { eggs: 2 } )\r \r
  • Between a trailing comma and a following close parenthesis:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    foo = (0,)\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    bar = (0, )\r \r
  • Immediately before a comma, semicolon, or colon:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    if x == 4: print(x, y); x, y = y, x\r \r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    if x == 4 : print(x , y) ; x , y = y , x\r \r
  • However, in a slice the colon acts like a binary operator, and\r should have equal amounts on either side (treating it as the\r operator with the lowest priority). In an extended slice, both\r colons must have the same amount of spacing applied. Exception:\r when a slice parameter is omitted, the space is omitted:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    ham[1:9], ham[1:9:3], ham[:9:3], ham[1::3], ham[1:9:]\r ham[lower:upper], ham[lower:upper:], ham[lower::step]\r ham[lower+offset : upper+offset]\r ham[: upper_fn(x) : step_fn(x)], ham[:: step_fn(x)]\r ham[lower + offset : upper + offset]\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    ham[lower + offset:upper + offset]\r ham[1: 9], ham[1 :9], ham[1:9 :3]\r ham[lower : : step]\r ham[ : upper]\r \r
  • Immediately before the open parenthesis that starts the argument\r list of a function call:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    spam(1)\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    spam (1)\r \r
  • Immediately before the open parenthesis that starts an indexing or\r slicing:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    dct['key'] = lst[index]\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    dct ['key'] = lst [index]\r \r
  • More than one space around an assignment (or other) operator to\r align it with another:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    x = 1\r y = 2\r long_variable = 3\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    x = 1\r y = 2\r long_variable = 3\r \r Other Recommendations\r ---------------------\r \r
  • Avoid trailing whitespace anywhere. Because it's usually invisible,\r it can be confusing: e.g. a backslash followed by a space and a\r newline does not count as a line continuation marker. Some editors\r don't preserve it and many projects (like CPython itself) have\r pre-commit hooks that reject it.\r \r
  • Always surround these binary operators with a single space on either\r side: assignment (=), augmented assignment (+=, -=\r etc.), comparisons (==, \x3C, >, !=, \x3C=, >=, in,\r not in, is, is not), Booleans (and, or, not).\r \r
  • If operators with different priorities are used, consider adding\r whitespace around the operators with the lowest priority(ies). Use\r your own judgment; however, never use more than one space, and\r always have the same amount of whitespace on both sides of a binary\r operator:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    i = i + 1\r submitted += 1\r x = x2 - 1\r hypot2 = xx + y*y\r c = (a+b) * (a-b)\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    i=i+1\r submitted +=1\r x = x * 2 - 1\r hypot2 = x * x + y * y\r c = (a + b) * (a - b)\r \r
  • Function annotations should use the normal rules for colons and\r always have spaces around the -> arrow if present. (See\r Function Annotations_ below for more about function annotations.):\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    def munge(input: AnyStr): ...\r def munge() -> PosInt: ...\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    def munge(input:AnyStr): ...\r def munge()->PosInt: ...\r \r
  • Don't use spaces around the = sign when used to indicate a\r keyword argument, or when used to indicate a default value for an\r unannotated function parameter:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    def complex(real, imag=0.0):\r return magic(r=real, i=imag)\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    def complex(real, imag = 0.0):\r return magic(r = real, i = imag)\r \r \r When combining an argument annotation with a default value, however, do use\r spaces around the = sign:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    def munge(sep: AnyStr = None): ...\r def munge(input: AnyStr, sep: AnyStr = None, limit=1000): ...\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    def munge(input: AnyStr=None): ...\r def munge(input: AnyStr, limit = 1000): ...\r \r
  • Compound statements (multiple statements on the same line) are\r generally discouraged:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    if foo == 'blah':\r do_blah_thing()\r do_one()\r do_two()\r do_three()\r \r Rather not:\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    if foo == 'blah': do_blah_thing()\r do_one(); do_two(); do_three()\r \r
  • While sometimes it's okay to put an if/for/while with a small body\r on the same line, never do this for multi-clause statements. Also\r avoid folding such long lines!\r \r Rather not:\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    if foo == 'blah': do_blah_thing()\r for x in lst: total += x\r while t \x3C 10: t = delay()\r \r Definitely not:\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    if foo == 'blah': do_blah_thing()\r else: do_non_blah_thing()\r \r try: something()\r finally: cleanup()\r \r do_one(); do_two(); do_three(long, argument,\r list, like, this)\r \r if foo == 'blah': one(); two(); three()\r \r \r When to Use Trailing Commas\r ===========================\r \r Trailing commas are usually optional, except they are mandatory when\r making a tuple of one element. For clarity, it is recommended to\r surround the latter in (technically redundant) parentheses:\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    FILES = ('setup.cfg',)\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    FILES = 'setup.cfg',\r \r When trailing commas are redundant, they are often helpful when a\r version control system is used, when a list of values, arguments or\r imported items is expected to be extended over time. The pattern is\r to put each value (etc.) on a line by itself, always adding a trailing\r comma, and add the close parenthesis/bracket/brace on the next line.\r However it does not make sense to have a trailing comma on the same\r line as the closing delimiter (except in the above case of singleton\r tuples):\r \r .. code-block::\r :class: good\r \r

    Correct:\r

    FILES = [\r 'setup.cfg',\r 'tox.ini',\r ]\r initialize(FILES,\r error=True,\r )\r \r .. code-block::\r :class: bad\r \r

    Wrong:\r

    FILES = ['setup.cfg', 'tox.ini',]\r initialize(FILES, error=True,)\r \r \r Comments\r ========\r \r Comments that contradict the code are worse than no comments. Always\r make a priority of keeping the comments up-to-date when the code\r changes!\r \r Comments should be complete sentences. The first word should be\r capitalized, unless it is an identifier that begins with a lower case\r letter (never alter the case of identifiers!).\r \r Block comments generally consist of one or more paragraphs built out of\r complete sentences, with each sentence ending in a period.\r \r You should use one or two spaces after a sentence-ending period in\r multi-sentence comments, except after the final sentence.\r \r Ensure that your comments are clear and easily understandable to other\r speakers of the language you are writing in.\r \r Python coders from non-English speaking countries: please write your\r comments in English, unless you are 120% sure that the code will never\r be read by people who don't speak your language.\r \r Block Comments\r --------------\r \r Block comments generally apply to some (or all) code that follows\r them, and are indented to the same level as that code. Each line of a\r block comment starts with a # and a single space (unless it is\r indented text inside the comment).\r \r Paragraphs inside a block comment are separated by a line containing a\r single #.\r \r Inline Comments\r ---------------\r \r Use inline comments sparingly.\r \r An inline comment is a comment on the same line as a statement.\r Inline comments should be separated by at least two spaces from the\r statement. They should start with a # and a single space.\r \r Inline comments are unnecessary and in fact distracting if they state\r the obvious. Don't do this:\r \r .. code-block::\r :class: bad\r \r x = x + 1 # Increment x\r \r But sometimes, this is useful:\r \r .. code-block::\r :class: good\r \r x = x + 1 # Compensate for border\r \r Documentation Strings\r ---------------------\r \r Conventions for writing good documentation strings\r (a.k.a. "docstrings") are immortalized in :pep:257.\r \r
  • Write docstrings for all public modules, functions, classes, and\r methods. Docstrings are not necessary for non-public methods, but\r you should have a comment that describes what the method does. This\r comment should appear after the def line.\r \r
  • :pep:257 describes good docstring conventions. Note that most\r importantly, the """ that ends a multiline docstring should be\r on a line by itself:\r \r .. code-block::\r :class: good\r \r \r """Return a foobang\r \r Optional plotz says to frobnicate the bizbaz first.\r """\r \r
  • For one liner docstrings, please keep the closing """ on\r the same line:\r \r .. code-block::\r :class: good\r \r """Return an ex-parrot."""\r \r \r Naming Conventions\r ==================\r \r The naming conventions of Python's library are a bit of a mess, so\r we'll never get this completely consistent -- nevertheless, here are\r the currently recommended naming standards. New modules and packages\r (including third party frameworks) should be written to these\r standards, but where an existing library has a different style,\r internal consistency is preferred.\r \r Overriding Principle\r --------------------\r \r Names that are visible to the user as public parts of the API should\r follow conventions that reflect usage rather than implementation.\r \r Descriptive: Naming Styles\r --------------------------\r \r There are a lot of different naming styles. It helps to be able to\r recognize what naming style is being used, independently from what\r they are used for.\r \r The following naming styles are commonly distinguished:\r \r
  • b (single lowercase letter)\r
  • B (single uppercase letter)\r
  • lowercase\r
  • lower_case_with_underscores\r
  • UPPERCASE\r
  • UPPER_CASE_WITH_UNDERSCORES\r
  • CapitalizedWords (or CapWords, or CamelCase -- so named because\r of the bumpy look of its letters [4]_). This is also sometimes known\r as StudlyCaps.\r \r Note: When using acronyms in CapWords, capitalize all the\r letters of the acronym. Thus HTTPServerError is better than\r HttpServerError.\r
  • mixedCase (differs from CapitalizedWords by initial lowercase\r character!)\r
  • Capitalized_Words_With_Underscores (ugly!)\r \r There's also the style of using a short unique prefix to group related\r names together. This is not used much in Python, but it is mentioned\r for completeness. For example, the os.stat() function returns a\r tuple whose items traditionally have names like st_mode,\r st_size, st_mtime and so on. (This is done to emphasize the\r correspondence with the fields of the POSIX system call struct, which\r helps programmers familiar with that.)\r \r The X11 library uses a leading X for all its public functions. In\r Python, this style is generally deemed unnecessary because attribute\r and method names are prefixed with an object, and function names are\r prefixed with a module name.\r \r In addition, the following special forms using leading or trailing\r underscores are recognized (these can generally be combined with any\r case convention):\r \r
  • _single_leading_underscore: weak "internal use" indicator.\r E.g. from M import * does not import objects whose names start\r with an underscore.\r \r
  • single_trailing_underscore_: used by convention to avoid\r conflicts with Python keyword, e.g. :\r \r .. code-block::\r :class: good\r \r tkinter.Toplevel(master, class_='ClassName')\r \r
  • __double_leading_underscore: when naming a class attribute,\r invokes name mangling (inside class FooBar, __boo becomes\r _FooBar__boo; see below).\r \r
  • __double_leading_and_trailing_underscore__: "magic" objects or\r attributes that live in user-controlled namespaces.\r E.g. __init__, __import__ or __file__. Never invent\r such names; only use them as documented.\r \r Prescriptive: Naming Conventions\r --------------------------------\r \r Names to Avoid\r
\r
Never use the characters 'l' (lowercase letter el), 'O' (uppercase\r
letter oh), or 'I' (uppercase letter eye) as single character variable\r
names.\r
\r
In some fonts, these characters are indistinguishable from the\r
numerals one and zero.  When tempted to use 'l', use 'L' instead.\r
\r
ASCII Compatibility\r
~~~~~~~~~~~~~~~~~~~\r
\r
Identifiers used in the standard library must be ASCII compatible\r
as described in the\r
:pep:`policy section \x3C3131#policy-specification>`\r
of :pep:`3131`.\r
\r
Package and Module Names\r
~~~~~~~~~~~~~~~~~~~~~~~~\r
\r
Modules should have short, all-lowercase names.  Underscores can be\r
used in the module name if it improves readability.  Python packages\r
should also have short, all-lowercase names, although the use of\r
underscores is discouraged.\r
\r
When an extension module written in C or C++ has an accompanying\r
Python module that provides a higher level (e.g. more object oriented)\r
interface, the C/C++ module has a leading underscore\r
(e.g. ``_socket``).\r
\r
Class Names\r
~~~~~~~~~~~\r
\r
Class names should normally use the CapWords convention.\r
\r
The naming convention for functions may be used instead in cases where\r
the interface is documented and used primarily as a callable.\r
\r
Note that there is a separate convention for builtin names: most builtin\r
names are single words (or two words run together), with the CapWords\r
convention used only for exception names and builtin constants.\r
\r
Type Variable Names\r
~~~~~~~~~~~~~~~~~~~\r
\r
Names of type variables introduced in :pep:`484` should normally use CapWords\r
preferring short names: ``T``, ``AnyStr``, ``Num``. It is recommended to add\r
suffixes ``_co`` or ``_contra`` to the variables used to declare covariant\r
or contravariant behavior correspondingly:\r
\r
.. code-block::\r
   :class: good\r
\r
   from typing import TypeVar\r
\r
   VT_co = TypeVar('VT_co', covariant=True)\r
   KT_contra = TypeVar('KT_contra', contravariant=True)\r
\r
Exception Names\r
~~~~~~~~~~~~~~~\r
\r
Because exceptions should be classes, the class naming convention\r
applies here.  However, you should use the suffix "Error" on your\r
exception names (if the exception actually is an error).\r
\r
Global Variable Names\r
~~~~~~~~~~~~~~~~~~~~~\r
\r
(Let's hope that these variables are meant for use inside one module\r
only.)  The conventions are about the same as those for functions.\r
\r
Modules that are designed for use via ``from M import *`` should use\r
the ``__all__`` mechanism to prevent exporting globals, or use the\r
older convention of prefixing such globals with an underscore (which\r
you might want to do to indicate these globals are "module\r
non-public").\r
\r
Function and Variable Names\r
~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
\r
Function names should be lowercase, with words separated by\r
underscores as necessary to improve readability.\r
\r
Variable names follow the same convention as function names.\r
\r
mixedCase is allowed only in contexts where that's already the\r
prevailing style (e.g. threading.py), to retain backwards\r
compatibility.\r
\r
Function and Method Arguments\r
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
\r
Always use ``self`` for the first argument to instance methods.\r
\r
Always use ``cls`` for the first argument to class methods.\r
\r
If a function argument's name clashes with a reserved keyword, it is\r
generally better to append a single trailing underscore rather than\r
use an abbreviation or spelling corruption.  Thus ``class_`` is better\r
than ``clss``.  (Perhaps better is to avoid such clashes by using a\r
synonym.)\r
\r
Method Names and Instance Variables\r
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
\r
Use the function naming rules: lowercase with words separated by\r
underscores as necessary to improve readability.\r
\r
Use one leading underscore only for non-public methods and instance\r
variables.\r
\r
To avoid name clashes with subclasses, use two leading underscores to\r
invoke Python's name mangling rules.\r
\r
Python mangles these names with the class name: if class Foo has an\r
attribute named ``__a``, it cannot be accessed by ``Foo.__a``.  (An\r
insistent user could still gain access by calling ``Foo._Foo__a``.)\r
Generally, double leading underscores should be used only to avoid\r
name conflicts with attributes in classes designed to be subclassed.\r
\r
Note: there is some controversy about the use of __names (see below).\r
\r
Constants\r
~~~~~~~~~\r
\r
Constants are usually defined on a module level and written in all\r
capital letters with underscores separating words.  Examples include\r
``MAX_OVERFLOW`` and ``TOTAL``.\r
\r
Designing for Inheritance\r
~~~~~~~~~~~~~~~~~~~~~~~~~\r
\r
Always decide whether a class's methods and instance variables\r
(collectively: "attributes") should be public or non-public.  If in\r
doubt, choose non-public; it's easier to make it public later than to\r
make a public attribute non-public.\r
\r
Public attributes are those that you expect unrelated clients of your\r
class to use, with your commitment to avoid backwards incompatible\r
changes.  Non-public attributes are those that are not intended to be\r
used by third parties; you make no guarantees that non-public\r
attributes won't change or even be removed.\r
\r
We don't use the term "private" here, since no attribute is really\r
private in Python (without a generally unnecessary amount of work).\r
\r
Another category of attributes are those that are part of the\r
"subclass API" (often called "protected" in other languages).  Some\r
classes are designed to be inherited from, either to extend or modify\r
aspects of the class's behavior.  When designing such a class, take\r
care to make explicit decisions about which attributes are public,\r
which are part of the subclass API, and which are truly only to be\r
used by your base class.\r
\r
With this in mind, here are the Pythonic guidelines:\r
\r
- Public attributes should have no leading underscores.\r
\r
- If your public attribute name collides with a reserved keyword,\r
  append a single trailing underscore to your attribute name.  This is\r
  preferable to an abbreviation or corrupted spelling.  (However,\r
  notwithstanding this rule, 'cls' is the preferred spelling for any\r
  variable or argument which is known to be a class, especially the\r
  first argument to a class method.)\r
\r
  Note 1: See the argument name recommendation above for class methods.\r
\r
- For simple public data attributes, it is best to expose just the\r
  attribute name, without complicated accessor/mutator methods.  Keep\r
  in mind that Python provides an easy path to future enhancement,\r
  should you find that a simple data attribute needs to grow\r
  functional behavior.  In that case, use properties to hide\r
  functional implementation behind simple data attribute access\r
  syntax.\r
\r
  Note 1: Try to keep the functional behavior side-effect free,\r
  although side-effects such as caching are generally fine.\r
\r
  Note 2: Avoid using properties for computationally expensive\r
  operations; the attribute notation makes the caller believe that\r
  access is (relatively) cheap.\r
\r
- If your class is intended to be subclassed, and you have attributes\r
  that you do not want subclasses to use, consider naming them with\r
  double leading underscores and no trailing underscores.  This\r
  invokes Python's name mangling algorithm, where the name of the\r
  class is mangled into the attribute name.  This helps avoid\r
  attribute name collisions should subclasses inadvertently contain\r
  attributes with the same name.\r
\r
  Note 1: Note that only the simple class name is used in the mangled\r
  name, so if a subclass chooses both the same class name and attribute\r
  name, you can still get name collisions.\r
\r
  Note 2: Name mangling can make certain uses, such as debugging and\r
  ``__getattr__()``, less convenient.  However the name mangling\r
  algorithm is well documented and easy to perform manually.\r
\r
  Note 3: Not everyone likes name mangling.  Try to balance the\r
  need to avoid accidental name clashes with potential use by\r
  advanced callers.\r
\r
Public and Internal Interfaces\r
------------------------------\r
\r
Any backwards compatibility guarantees apply only to public interfaces.\r
Accordingly, it is important that users be able to clearly distinguish\r
between public and internal interfaces.\r
\r
Documented interfaces are considered public, unless the documentation\r
explicitly declares them to be provisional or internal interfaces exempt\r
from the usual backwards compatibility guarantees. All undocumented\r
interfaces should be assumed to be internal.\r
\r
To better support introspection, modules should explicitly declare the\r
names in their public API using the ``__all__`` attribute. Setting\r
``__all__`` to an empty list indicates that the module has no public API.\r
\r
Even with ``__all__`` set appropriately, internal interfaces (packages,\r
modules, classes, functions, attributes or other names) should still be\r
prefixed with a single leading underscore.\r
\r
An interface is also considered internal if any containing namespace\r
(package, module or class) is considered internal.\r
\r
Imported names should always be considered an implementation detail.\r
Other modules must not rely on indirect access to such imported names\r
unless they are an explicitly documented part of the containing module's\r
API, such as ``os.path`` or a package's ``__init__`` module that exposes\r
functionality from submodules.\r
\r
\r
Programming Recommendations\r
===========================\r
\r
- Code should be written in a way that does not disadvantage other\r
  implementations of Python (PyPy, Jython, IronPython, Cython, Psyco,\r
  and such).\r
\r
  For example, do not rely on CPython's efficient implementation of\r
  in-place string concatenation for statements in the form ``a += b``\r
  or ``a = a + b``.  This optimization is fragile even in CPython (it\r
  only works for some types) and isn't present at all in implementations\r
  that don't use refcounting.  In performance sensitive parts of the\r
  library, the ``''.join()`` form should be used instead.  This will\r
  ensure that concatenation occurs in linear time across various\r
  implementations.\r
\r
- Comparisons to singletons like None should always be done with\r
  ``is`` or ``is not``, never the equality operators.\r
\r
  Also, beware of writing ``if x`` when you really mean ``if x is not\r
  None`` -- e.g. when testing whether a variable or argument that\r
  defaults to None was set to some other value.  The other value might\r
  have a type (such as a container) that could be false in a boolean\r
  context!\r
\r
- Use ``is not`` operator rather than ``not ... is``.  While both\r
  expressions are functionally identical, the former is more readable\r
  and preferred:\r
\r
  .. code-block::\r
     :class: good\r
\r
     # Correct:\r
     if foo is not None:\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
     if not foo is None:\r
\r
- When implementing ordering operations with rich comparisons, it is\r
  best to implement all six operations (``__eq__``, ``__ne__``,\r
  ``__lt__``, ``__le__``, ``__gt__``, ``__ge__``) rather than relying\r
  on other code to only exercise a particular comparison.\r
\r
  To minimize the effort involved, the ``functools.total_ordering()``\r
  decorator provides a tool to generate missing comparison methods.\r
\r
  :pep:`207` indicates that reflexivity rules *are* assumed by Python.\r
  Thus, the interpreter may swap ``y > x`` with ``x \x3C y``, ``y >= x``\r
  with ``x \x3C= y``, and may swap the arguments of ``x == y`` and ``x !=\r
  y``.  The ``sort()`` and ``min()`` operations are guaranteed to use\r
  the ``\x3C`` operator and the ``max()`` function uses the ``>``\r
  operator.  However, it is best to implement all six operations so\r
  that confusion doesn't arise in other contexts.\r
\r
- Always use a def statement instead of an assignment statement that binds\r
  a lambda expression directly to an identifier:\r
\r
  .. code-block::\r
     :class: good\r
\r
     # Correct:\r
     def f(x): return 2*x\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
     f = lambda x: 2*x\r
\r
  The first form means that the name of the resulting function object is\r
  specifically 'f' instead of the generic '\x3Clambda>'. This is more\r
  useful for tracebacks and string representations in general. The use\r
  of the assignment statement eliminates the sole benefit a lambda\r
  expression can offer over an explicit def statement (i.e. that it can\r
  be embedded inside a larger expression)\r
\r
- Derive exceptions from ``Exception`` rather than ``BaseException``.\r
  Direct inheritance from ``BaseException`` is reserved for exceptions\r
  where catching them is almost always the wrong thing to do.\r
\r
  Design exception hierarchies based on the distinctions that code\r
  *catching* the exceptions is likely to need, rather than the locations\r
  where the exceptions are raised. Aim to answer the question\r
  "What went wrong?" programmatically, rather than only stating that\r
  "A problem occurred" (see :pep:`3151` for an example of this lesson being\r
  learned for the builtin exception hierarchy)\r
\r
  Class naming conventions apply here, although you should add the\r
  suffix "Error" to your exception classes if the exception is an\r
  error.  Non-error exceptions that are used for non-local flow control\r
  or other forms of signaling need no special suffix.\r
\r
- Use exception chaining appropriately. ``raise X from Y``\r
  should be used to indicate explicit replacement without losing the\r
  original traceback.\r
\r
  When deliberately replacing an inner exception (using ``raise X from\r
  None``), ensure that relevant details are transferred to the new\r
  exception (such as preserving the attribute name when converting\r
  KeyError to AttributeError, or embedding the text of the original\r
  exception in the new exception message).\r
\r
- When catching exceptions, mention specific exceptions whenever\r
  possible instead of using a bare ``except:`` clause:\r
\r
  .. code-block::\r
     :class: good\r
\r
     try:\r
         import platform_specific_module\r
     except ImportError:\r
         platform_specific_module = None\r
\r
  A bare ``except:`` clause will catch SystemExit and\r
  KeyboardInterrupt exceptions, making it harder to interrupt a\r
  program with Control-C, and can disguise other problems.  If you\r
  want to catch all exceptions that signal program errors, use\r
  ``except Exception:`` (bare except is equivalent to ``except\r
  BaseException:``).\r
\r
  A good rule of thumb is to limit use of bare 'except' clauses to two\r
  cases:\r
\r
  1. If the exception handler will be printing out or logging the\r
     traceback; at least the user will be aware that an error has\r
     occurred.\r
\r
  2. If the code needs to do some cleanup work, but then lets the\r
     exception propagate upwards with ``raise``.  ``try...finally``\r
     can be a better way to handle this case.\r
\r
- When catching operating system errors, prefer the explicit exception\r
  hierarchy introduced in Python 3.3 over introspection of ``errno``\r
  values.\r
\r
- Additionally, for all try/except clauses, limit the ``try`` clause\r
  to the absolute minimum amount of code necessary.  Again, this\r
  avoids masking bugs:\r
\r
  .. code-block::\r
     :class: good\r
\r
     # Correct:\r
     try:\r
         value = collection[key]\r
     except KeyError:\r
         return key_not_found(key)\r
     else:\r
         return handle_value(value)\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
     try:\r
         # Too broad!\r
         return handle_value(collection[key])\r
     except KeyError:\r
         # Will also catch KeyError raised by handle_value()\r
         return key_not_found(key)\r
\r
- When a resource is local to a particular section of code, use a\r
  ``with`` statement to ensure it is cleaned up promptly and reliably\r
  after use. A try/finally statement is also acceptable.\r
\r
- Context managers should be invoked through separate functions or methods\r
  whenever they do something other than acquire and release resources:\r
\r
  .. code-block::\r
     :class: good\r
\r
     # Correct:\r
     with conn.begin_transaction():\r
         do_stuff_in_transaction(conn)\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
     with conn:\r
         do_stuff_in_transaction(conn)\r
\r
  The latter example doesn't provide any information to indicate that\r
  the ``__enter__`` and ``__exit__`` methods are doing something other\r
  than closing the connection after a transaction.  Being explicit is\r
  important in this case.\r
\r
- Be consistent in return statements.  Either all return statements in\r
  a function should return an expression, or none of them should.  If\r
  any return statement returns an expression, any return statements\r
  where no value is returned should explicitly state this as ``return\r
  None``, and an explicit return statement should be present at the\r
  end of the function (if reachable):\r
\r
  .. code-block::\r
     :class: good\r
\r
     # Correct:\r
\r
     def foo(x):\r
         if x >= 0:\r
             return math.sqrt(x)\r
         else:\r
             return None\r
\r
     def bar(x):\r
         if x \x3C 0:\r
             return None\r
         return math.sqrt(x)\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
\r
     def foo(x):\r
         if x >= 0:\r
             return math.sqrt(x)\r
\r
     def bar(x):\r
         if x \x3C 0:\r
             return\r
         return math.sqrt(x)\r
\r
- Use ``''.startswith()`` and ``''.endswith()`` instead of string\r
  slicing to check for prefixes or suffixes.\r
\r
  startswith() and endswith() are cleaner and less error prone:\r
\r
  .. code-block::\r
     :class: good\r
\r
     # Correct:\r
     if foo.startswith('bar'):\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
     if foo[:3] == 'bar':\r
\r
- Object type comparisons should always use isinstance() instead of\r
  comparing types directly:\r
\r
  .. code-block::\r
     :class: good\r
\r
     # Correct:\r
     if isinstance(obj, int):\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
     if type(obj) is type(1):\r
\r
- For sequences, (strings, lists, tuples), use the fact that empty\r
  sequences are false:\r
\r
  .. code-block::\r
     :class: good\r
\r
     # Correct:\r
     if not seq:\r
     if seq:\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
     if len(seq):\r
     if not len(seq):\r
\r
- Don't write string literals that rely on significant trailing\r
  whitespace.  Such trailing whitespace is visually indistinguishable\r
  and some editors (or more recently, reindent.py) will trim them.\r
\r
- Don't compare boolean values to True or False using ``==``:\r
\r
  .. code-block::\r
     :class: good\r
\r
     # Correct:\r
     if greeting:\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
     if greeting == True:\r
\r
  Worse:\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
     if greeting is True:\r
\r
- Use of the flow control statements ``return``/``break``/``continue``\r
  within the finally suite of a ``try...finally``, where the flow control\r
  statement would jump outside the finally suite, is discouraged.  This\r
  is because such statements will implicitly cancel any active exception\r
  that is propagating through the finally suite:\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
     def foo():\r
         try:\r
             1 / 0\r
         finally:\r
             return 42\r
\r
Function Annotations\r
--------------------\r
\r
With the acceptance of :pep:`484`, the style rules for function\r
annotations have changed.\r
\r
- Function annotations should use :pep:`484` syntax (there are some\r
  formatting recommendations for annotations in the previous section).\r
\r
- The experimentation with annotation styles that was recommended\r
  previously in this PEP is no longer encouraged.\r
\r
- However, outside the stdlib, experiments within the rules of :pep:`484`\r
  are now encouraged.  For example, marking up a large third party\r
  library or application with :pep:`484` style type annotations,\r
  reviewing how easy it was to add those annotations, and observing\r
  whether their presence increases code understandability.\r
\r
- The Python standard library should be conservative in adopting such\r
  annotations, but their use is allowed for new code and for big\r
  refactorings.\r
\r
- For code that wants to make a different use of function annotations\r
  it is recommended to put a comment of the form:\r
\r
  .. code-block::\r
     :class: good\r
\r
     # type: ignore\r
\r
  near the top of the file; this tells type checkers to ignore all\r
  annotations.  (More fine-grained ways of disabling complaints from\r
  type checkers can be found in :pep:`484`.)\r
\r
- Like linters, type checkers are optional, separate tools.  Python\r
  interpreters by default should not issue any messages due to type\r
  checking and should not alter their behavior based on annotations.\r
\r
- Users who don't want to use type checkers are free to ignore them.\r
  However, it is expected that users of third party library packages\r
  may want to run type checkers over those packages.  For this purpose\r
  :pep:`484` recommends the use of stub files: .pyi files that are read\r
  by the type checker in preference of the corresponding .py files.\r
  Stub files can be distributed with a library, or separately (with\r
  the library author's permission) through the typeshed repo [5]_.\r
\r
\r
Variable Annotations\r
--------------------\r
\r
:pep:`526` introduced variable annotations. The style recommendations for them are\r
similar to those on function annotations described above:\r
\r
- Annotations for module level variables, class and instance variables,\r
  and local variables should have a single space after the colon.\r
\r
- There should be no space before the colon.\r
\r
- If an assignment has a right hand side, then the equality sign should have\r
  exactly one space on both sides:\r
\r
  .. code-block::\r
     :class: good\r
\r
     # Correct:\r
\r
     code: int\r
\r
     class Point:\r
         coords: Tuple[int, int]\r
         label: str = '\x3Cunknown>'\r
\r
  .. code-block::\r
     :class: bad\r
\r
     # Wrong:\r
\r
     code:int  # No space after colon\r
     code : int  # Space before colon\r
\r
     class Test:\r
         result: int=0  # No spaces around equality sign\r
\r
- Although the :pep:`526` is accepted for Python 3.6, the variable annotation\r
  syntax is the preferred syntax for stub files on all versions of Python\r
  (see :pep:`484` for details).\r
\r
.. rubric:: Footnotes\r
\r
.. [#fn-hi] *Hanging indentation* is a type-setting style where all\r
   the lines in a paragraph are indented except the first line.  In\r
   the context of Python, the term is used to describe a style where\r
   the opening parenthesis of a parenthesized statement is the last\r
   non-whitespace character of the line, with subsequent lines being\r
   indented until the closing parenthesis.
安全使用建议
This skill is a straightforward, instruction-only PEP 8 style guide and appears safe to install. Before using it, decide whether you want the agent to make automated edits or only suggest changes — if you allow automated edits, review diffs before committing. For enforcement in CI or development workflows, consider pairing this guidance with standard linters/formatters (flake8, black, isort) rather than relying solely on the agent. If you have private code, ensure you understand any data-sharing settings of your agent platform (this skill itself does not request external credentials or endpoints).
功能分析
Type: OpenClaw Skill Name: python-code-guide-skill Version: 0.1.0 The skill bundle is a legitimate implementation of the PEP 8 Python style guide. The instructions in skill.md are purely educational and instructional for the AI agent to enforce coding standards, with no evidence of malicious intent, data exfiltration, or prompt injection attacks.
能力评估
Purpose & Capability
The name and description (apply PEP 8) match the content: an embedded PEP 8 style guide. There are no unrelated requirements (no binaries, env vars, or external services) requested that would be inconsistent with a style guide.
Instruction Scope
SKILL.md contains rules and examples for formatting and style and instructs applying those rules to Python code. It doesn't instruct reading unrelated system files, accessing secrets, or sending data to external endpoints. The scope is limited to code style guidance and expected code edits/reviews.
Install Mechanism
No install spec and no code files are present (instruction-only). Nothing is written to disk or fetched at install time, so there is low installation risk.
Credentials
The skill requests no environment variables, credentials, or config paths. That is proportionate for a style/formatting guide.
Persistence & Privilege
always:false (not forced) and default autonomous invocation allowed — appropriate for a skill. The skill does not request persistent system modifications or elevated privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install python-code-guide-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /python-code-guide-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
python-code-guide-skill 0.1.0 – Initial release - Introduces the python-pep8-style skill, based on the official PEP 8 Python style guide. - Enforces rules for code layout, indentation, line length, whitespace, naming, comments, and best practices. - Supports code review, formatting checks, refactoring, and generation of PEP 8-compliant Python code. - Detailed explanations and examples included for indentation, line breaks, and other formatting standards.
元数据
Slug python-code-guide-skill
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

python-code-pep8-style 是什么?

Apply PEP 8 Python code style standards when writing, reviewing, or refactoring Python code. Use this skill when the user asks to enforce Python coding style... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 284 次。

如何安装 python-code-pep8-style?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install python-code-guide-skill」即可一键安装,无需额外配置。

python-code-pep8-style 是免费的吗?

是的,python-code-pep8-style 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

python-code-pep8-style 支持哪些平台?

python-code-pep8-style 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 python-code-pep8-style?

由 dolantan548-cmd(@dolantan548-cmd)开发并维护,当前版本 v0.1.0。

💬 留言讨论