最佳答案
我已经看到了几个这样的代码示例:
if not someobj:
#do something
但我想知道为什么不这样做:
if someobj == None:
#do something
有区别吗? 一个人比另一个人有优势吗?