isspace
Python String isspace() function returns
True
if there are only whitespace characters in the string, otherwise it returns
False
. If the string is empty then isspace() function returns
False
.
如果字符串中仅包含空格字符,则Python String isspace()函数将返回True
,否则返回False
。 如果字符串为空,则isspace()函数将返回False
。