Python string, string manipulation function and string related operations
pythonString, string manipulation functions and string related operations
String introduction
pythonString representation
PythonIn addition to processing numbers, strings can also be processed.
>>> 'spam eggs'
'spam eggs'
>>> 'doesn/'t'
"doesn't"
>>> "doesn't"
"doesn't"
>>> '"Yes," he said.'
'"Yes," he said.'
>>> "/"Yes,/" he said."
'"Yes," he said.'
>>> '"Isn/'t," she said.'
'"Isn/'t," she said.'
The output format of the string is the same as the input, wrapped in apostrophes, and the apostrophes and other special characters...