 Google Java Style Guideusing alignment: private int x; // this is fine private Color color; // this too private int x; // permitted, but future edits private Color color; // may leave it unaligned Tip: Alignment can aid readability0 码力 | 19 页 | 84.76 KB | 1 年前3 Google Java Style Guideusing alignment: private int x; // this is fine private Color color; // this too private int x; // permitted, but future edits private Color color; // may leave it unaligned Tip: Alignment can aid readability0 码力 | 19 页 | 84.76 KB | 1 年前3
 Google Python Style Guidesquares = [x * x for x in range(10)] eat(jelly_bean for jelly_bean in jelly_beans if jelly_bean.color == 'black') No: result = [(x, y) for x in range(10) for y in range(5) if x * y > 10] return ((x expres- sion. Yes: foo_bar(self, width, height, color='black', design=None, x='foo', emphasis=None, highlight=0) if (width == 0 and height == 0 and color == 'red' and emphasis == 'strong'): When a literal0 码力 | 30 页 | 94.81 KB | 1 年前3 Google Python Style Guidesquares = [x * x for x in range(10)] eat(jelly_bean for jelly_bean in jelly_beans if jelly_bean.color == 'black') No: result = [(x, y) for x in range(10) for y in range(5) if x * y > 10] return ((x expres- sion. Yes: foo_bar(self, width, height, color='black', design=None, x='foo', emphasis=None, highlight=0) if (width == 0 and height == 0 and color == 'red' and emphasis == 'strong'): When a literal0 码力 | 30 页 | 94.81 KB | 1 年前3
共 2 条
- 1













