Variable naming and usage # variable names can only contain letters, numbers, and underscores. [cannot start with a number] [0020.sendmessagex] [send_message_001] leading # the variable name cannot contain spaces, you can use underscores to separate the word [sendmessagex] [send_message] into # you cannot use the Python keyword or function name as the variable name Guibs's Python learning _ variable.
# Variable naming and usage # variable names can only contain letters, numbers, and underscores. [cannot start with a number] [0020.send message x] [send_message_001] leading # the variable name cannot contain spaces, you can use underscores to separate the word [send message x] [send_message] into # The Python keyword and function name cannot be used as the variable name # the variable name should be short and descriptive, for example, name: [n x] [name] Character # Note the use of l and O, some fonts will be mixed with 1 and 0 message = "Hello Guibs" print (message) message = "Fighting Guibs" print (message)
The above is the Python learning variable of Guibs. For more information, see PHP Chinese network (www.php1.cn )!