Python: if not val, vs if val is None

前端 未结 0 2013
南方客
南方客 2020-12-23 06:49

I\'ve always coded in the style of if not value, however, a few guides have brought to my attention that while this style works, it seems to have 2 potential pr

相关标签:
回答
  • 消灭零回复
提交回复
热议问题