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

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

代码示例2
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.