7. String Services

在本章中介绍的各个模块,提供了各种对字符串的操作。

In addition, Python’s built-in string classes support the sequence type methods described in the Sequence Types — str, unicode, list, tuple, bytearray, buffer, xrange section, and also the string-specific methods described in the String Methods section. To output formatted strings use template strings or the % operator described in the String Formatting Operations section. 此外,还有基于正则表达式操作字符串的re模块。

Previous topic

6. Built-in Exceptions

Next topic

7.1. string — Common string operations

This Page