python的字符串内建函数6

2026-02-15 21:11:51

1、string.isspace():如果字符串中只包含空格,则返回True。

python的字符串内建函数6

python的字符串内建函数6

2、string.isspace():如果字符串中不只包含空格,则返回False。

python的字符串内建函数6

python的字符串内建函数6

3、string.istitle():如果字符串是标题化的,则返回True。

python的字符串内建函数6

python的字符串内建函数6

4、string.istitle():如果字符串不是标题化的,则返回False。

python的字符串内建函数6

python的字符串内建函数6

猜你喜欢