__double_leading_and_trailing_underscore__:存在于用户可控制的命名空间中的“magic”对象或属性。例如,__init__、__import__或__file__。永远不要发明这样的名称;只能按照文档使用它们。 Prescriptive: Naming Conventions|规定性:命名约定 Names to Avoid|应避免使用的名字 永远不要将字符 'l'(小写字母 "el...
Naming conventions of python 1.package name 全部小写字母,中间可以由点分隔开,作为命名空间,包名应该具有唯一性,推荐采用公司或组织域名的倒置,如com.apple.quicktime.v2 2.module name 全部小写字母,如果是多个单词构成,可以用下划线隔开,如dummy_threading. 3.class name 采用大驼峰法命名,如SplitViewController 4...
__double_leading_and_trailing_underscore__:(双下划线开头,双下划线结尾)“magic”对象或者存在于用户控制的命名空间内的属性,例如:__init__,__import__或者__file__。除了作为文档之外,永远不要命这样的名。 Prescriptive: Naming Conventions 约定俗成:命名约定 Names to Avoid 应避免的名字 永远不要使用字母...
__double_leading_and_trailing_underscore__:(双下划线开头,双下划线结尾)“magic”对象或者存在于用户控制的命名空间内的属性,例如:__init__,__import__或者__file__。除了作为文档之外,永远不要命这样的名。 7.3 Prescriptive: Naming Conventions 约定俗成:命名约定 7.3.1 Names to Avoid 应避免的名字 永远...
__double_leading_and_trailing_underscore__ : "magic" objects or attributes that live in user-controlled namespaces. E.g. __init__ , __import__ or __file__ . Never invent such names; only use them as documented. Prescriptive: Naming Conventions ...
Source File Encoding|源文件编码 核心Python发行版中的代码应始终使用UTF-8,并且不应具有编码声明。 在标准库中,仅应出于测试目的使用非UTF-8编码。请谨慎使用非ASCII字符,最好仅用于表示地点和人名。如果将非ASCII字符用作数据,请避免嘈杂的Unicode字符,例如z̯̯͡a̧͎̺l̡͓̫g̹̲o̡...
artifact required by that backend. Here, we are using the Python backend, and it requires the Python file that is used for serving (model.py). If we were using a PyTorch backend, a model.pt file would be required. For more details on naming conventions for model files,...
Handler naming conventions The function handler name defined at the time that you create a Lambda function is derived from: The name of the file in which the Lambda handler function is located. The name of the Python handler function.
double_leading_and_trailing_underscore:(双下划线开头,双下划线结尾)“magic”对象或者存在于用户控制的命名空间内的属性,例如:init,import__或者__file。除了作为文档之外,永远不要命这样的名。 Prescriptive: Naming Conventions 约定俗成:命名约定 Names to Avoid 应避免的名字 ...
Naming Conventions Selecting informative names is one of the most important steps in writing readable, maintainable, and correct code. Variable names should generally be nouns, and should clearly describe what the variable is intended to contain. Single letter variable are almost never acceptable, with...