python_string

String type

Definition of string:

The first way:

str1 = '**********'

str2 = "**********"

str3 = """**********"""

escape symbol

\n: represents a newline character

\": represents the double quotation mark itself

\t: represents the tab character

\': represents the single quote itself

triple quotes

Block comments: multi-line code comments

doc documentation for the function*

string formatting

String manipulation preview

String start and end match

what does it end with

what to start with

over!!!!!


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326690814&siteId=291194637