📅  最后修改于: 2022-03-11 14:46:03.956000             🧑  作者: Mango
def IsNullOrEmpty(x): # Returns true if null or empty
nullorempty = False
if not(x): # checks for nulls
nullorempty = True
if x.isspace(): # checks for blank strings
nullorempty = True
return nullorempty