9, three methods of python string multi-line processing

Insert picture description here
You can use single quotes or double quotes to set python strings.

Assuming that there are many escape characters in our string, we can make the escape characters in the string not escape and turn them into ordinary strings.
Insert picture description here
Insert picture description here

Insert picture description here
Use a pair of 3 double quotation marks to put together the multi-line string in the above figure, and you can see that the line break format is inside.

Guess you like

Origin blog.csdn.net/zhaopeng01zp/article/details/109249943