📌  相关文章
📜  如何在python代码示例中检查字符串是否包含空格

📅  最后修改于: 2022-03-11 14:45:24.310000             🧑  作者: Mango

代码示例1
#isspace() is a built-in method used for string handling
string = "My name is"
print(string.isspace())
#It will print True

string = "Hello"
print(string.isspace())
#It will print True