📌  相关文章
📜  检查字符串是否为空 python 代码示例

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

代码示例3
my_string = ""

if my_string == "":
  print(True)
else:
  print(False)

# Remember if you have even a white space in the string, the output will be - False.