Multiple lines of comments in Python with double and single quotes
At the same time Python receives single quotation marks ('), double quotation marks ("), three quotation marks (" ' "" ") to denote a string, the beginning and end of the quotation mark must be the same type of
Where three quotation marks can be composed of multiple lines, writing the shortcut syntax of multiple lines of text, common language file strings, at a specific location of the file, as a comment.
In the Python 2.6.6 environment
"""
Item_one = 1
Item_two = 2
Item_three = 3
Total = Item_one + \
Item_two + \
Item_three
Print Total
Word = ' word '
Sentence = "Lskdjn"
Paragraph = "' Kjhkjnda
Shdkjfakj
SDNF ' #这里用三个单引号来进行多行赋值, a syntax error is reported if you change to three double quotes. It is estimated that the runtime will recognize the ' paragraph= ' assignment statement, resulting in ambiguity collisions between the three double quotes in the assignment and the previous three double quotes. Why did not understand the specific, follow-up learning side to see.
Print paragraph
Raw_input ("\n\npress the Enter key to exit.")
"""
Multi-line comments for Python