这些不是无测试.
if val != None: if not (val is None): if val is not None:
哪个更好,为什么?
python nonetype
nonetype ×1
python ×1