温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有

Use boolean instead of 0/1 for condition check · Issue #93991 · python/cpython · GitHub

来源:github.com

Feature or enhancement In Lib/filecmp.py, line 160, we use a variable ok to check a condition. We use 0/1 to denote false/true here. A better coding style is using False/True. Pitch First, using True/False itself is a be…

以上为公开页面信息摘要,完整内容请前往原网站阅读。

前往原网站阅读全文

热门推荐记录