if x is not None:
#not null
else:
#null
Java开发之设计模式--抽象工厂模式(Abstract Factory)
导包View.OnClickListener和DialogInterface.OnClickListener冲突的解决方案