python【变量】【字符串】空值判断

快速过目:
if X:…do something…
if X is None:
if not X:
if not X is None:
if s.strip()==”: