stay Python in , Identifiers are made up of letters 、 Numbers 、 Underline composition , But don't start with a number , Case sensitive .
Identifiers that begin with underscores have a special meaning .
Start with a single underline _foo The identifier of represents a class attribute that cannot be accessed directly , It needs to be accessed through the interface provided by the class , Out-of-service from xxx import * And import .
Identifiers starting with double underscores __foo Represents a private member of a class , Identifiers that begin and end with double underscores __foo__ representative Python A special way of marking , Such as __init__() Constructor representing class .
Recently, many readers and cla
Article table of contentsCreat