📅  最后修改于: 2022-03-11 14:46:18.008000             🧑  作者: Mango
variable = None
variable_2 = ''
variable_3 = 'string'
variable_4 = 5
def none_or_empty(variable):
return True if not variable else False
none_or_empty(variable)
none_or_empty(variable_2)
none_or_empty(variable_3)
none_or_empty(variable_4)