Common escape characters:
Escape character meaning \ a bell (BEL) \ B backspace (BS), before the current position to a \ f feed (FF), the current position to the beginning of the next page \ n line feed (LF), the the current position to the beginning of the next line \ r carriage return (CR), the current position to the beginning of the line \ t horizontal tabulation (HT) (TAB next line position) \ V vertical tab (the VT) \\ representatives a backslash character " \" \ " represents a single quote (apostrophe) character \ '' represents a double quote character \? represents a question mark \ 0 null character (NUL) \ ddd any character represented by 1-3 octal \ xhh 1 Dao 2-digit hexadecimal represent any character
Commonly used for single-line comment symbol, for explaining the single line of code, any data behind the # is not output code running stage.
1,#
The third row is the code annotations will not perform the third line terminal.
Print (12 is ) Print ( " AS " ) # Print ( "NiHao") terminal Output: >>> 12 is >>> AS
2、\n
Newline feature is: escaping backslash + want to implement the first letter
print("asd \n asd \n asd") >>>asd >>>asd >>>asd