ava*_*sin 1 python
例如:
match = re.search('...', str, re.IGNORECASE) if match is not None: pass # or if match != None: pass
什么是更好的?
Dav*_*nan 5
从PEP 8:
与None这样的单例的比较应始终使用is或者is not从不使用相等运算符.
is
is not
归档时间:
11 年,7 月 前
查看次数:
173 次
最近记录: