----------------------------------------------JAVA-----------------------------------------------
java-case-sensitive: the class name and interface name are capitalized , the variables and methods are camel, the package name is completely lowercase , and the static variable is fully capitalized
1. Package name: Full lowercase | such as Net.ebseries.modules.
2. Class Name: Capitalize first Letter | Multiple word compositions require that the first letter of each word be capitalized, for example: DataFile or Infoparser.
3. Variable name: Camel-style | Mixed case, but the first character should be lowercase. Words are delimited by uppercase letters, with underscores, dollar characters ($), such as: Inputfilesize.
4. Interface (interface) name: Capitalize First Letter | Similar to the name of class.
5. Static Final variable name: Full capitalization | and point out the full meaning, for example: Final maxuploadfilesize=1024.
6. Method Name: Camel-style | Mixed case, lowercase first letter. The first word is a verb, and in each method name, uppercase letters separate the words and limit the use of underscores. The name of the parameter must be the same as the variable's naming convention. Use meaningful parameters to name them, and, if possible, use the same names as the fields to be assigned:
Setcounter (int size) {
this.size = size;
}
7. Array naming: Arrays should always be named in the following way: byte[] buffer; instead of: Byte buffer[] (habitual problem only)
----------------------------------------------Python-----------------------------------------------
Python is case-sensitive: Except for the class name and exception initials , the others are lowercase, and the words are divided by underscores , especially when the underscore begins and the underscore ends
1. Module name: Full lowercase, between words with _ | Reference: Logging
2. Package name: Full lowercase, between words with _ | Reference python:logging
3. Class Name: Capitalize first Letter | Reference: Python class LogRecord (object):
4. Normal variable: Completely lowercase, between words with _ | Reference: Exc_info
5. Instance variables: Start with _, completely lowercase, and divide the words with _ | Reference: _exc_info
An identifier that begins with an underscore (_XXX), cannot access the class property, but is accessible through the interface provided by the class and is not loaded by the statement "from module import *" statement
6. Private instance variables: Start with _ (2 underscore), completely lowercase, split between words | Reference: __private_var, external access will be error
7. Normal function: Completely lowercase, between words with _ | Reference: Get_name ()
8. Private functions: Start with __ (2 underscores), completely lowercase, between words with Split | Reference: __get_name (), external access will be error
Attention:
_ Single underline: weak "Internal use" identification, such as: "From M import *", will not import all objects beginning with the underscore, including packages, modules, members
Single Underline End _: Just to avoid naming conflicts with Python keywords
__ Double underscore: a member within a module that represents a private member that cannot be called directly by an external
Packages and modules: modules should be named with the shortest possible, all-lowercase names, which can be underlined to enhance readability when the module is named. The same package name should also be the case, although it does not encourage underlining.
Class: Almost without exception, the class name is preceded by the first letter capitalized (Pascal named style) specification. The class name that begins with the _ single underscore is used internally, and the from M import * Above is not the case for the defendant to import by default.
Exception: Because the exception is also a class, follow the naming conventions of the class. In addition, if the exception actually refers to an error, you should use "error" as the suffix
---------------------------------------------- continuously updated -----------------------------------------------
Variable naming rules for various languages of "basic article"