First of all, three single and double quotes in Python are not real annotations
>>> type ("" "abcde" "")<class'str' >>>> type ('abcd')<class' Str '>
This allows you to see three pairs of single, double quotes that have a data type
Three pairs of single, double quotes are defined when multiple lines of string can be defined
"" "" "print (a) ABCD
A pair of single, double quotation marks can also define a multiline string, but it's much more troublesome and troublesome.
" a\n " "b\n " "C\n" " d\n " Print (b) ABCD
Of course, three pairs of single, double quotes can also be used to define a row of a string
So what's the use of single and double quotes? For example, to enter Let ' s me think
' Let\ ' s me think '>>> str' Let' s me think"
If single quotation marks are used, then the translator must be used
" Let ' s me think ">>> str"let' s me think"
Double quotes are not required
Similarly if the string contains double quotes such as:She said, "Hurry up".
' She said, "Hurry up". '>>> str'She said, ' Hurry up '. '
Using single quotes does not require translation
" She said, \ "Hurry Up\". ">>> str'She said," Hurry up ". '
Use double quotes to translate
In Python, a pair of single quotes, a pair of double quotes, three single and double quotes, and the use of the difference