mirror of
https://github.com/zh-google-styleguide/zh-google-styleguide.git
synced 2025-02-19 20:50:10 +08:00
commit
2cdfbf3b49
@ -19,7 +19,7 @@ Lint
|
||||
结论:
|
||||
确保对你的代码运行pylint.抑制不准确的警告,以便能够将其他警告暴露出来。
|
||||
|
||||
你可以通过设置一个行注释来抑制告警. 例如:
|
||||
你可以通过设置一个行注释来抑制警告. 例如:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
@ -360,7 +360,7 @@ Shebang
|
||||
# in the array and the array size and then do binary search to
|
||||
# get the exact number.
|
||||
|
||||
if i & (i-1) == 0: # true iff i is a power of 2
|
||||
if i & (i-1) == 0: # True if i is 0 or a power of 2.
|
||||
|
||||
为了提高可读性, 注释应该至少离开代码2个空格.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user