Python isspace()方法

Python 字符串 Python 字符串

描述

Python isspace() 方法检测字符串是否只由空格组成。

语法

isspace()方法语法:


str.isspace()

参数

  • 无。