 Google Python Style Guideargument or a default parameter value. Yes: def complex(real, imag=0.0): return magic(r=real, i=imag) No: def complex(real, imag = 0.0): return magic(r = real, i = imag) 19 Don’t use spaces to vertically0 码力 | 30 页 | 94.81 KB | 1 年前3 Google Python Style Guideargument or a default parameter value. Yes: def complex(real, imag=0.0): return magic(r=real, i=imag) No: def complex(real, imag = 0.0): return magic(r = real, i = imag) 19 Don’t use spaces to vertically0 码力 | 30 页 | 94.81 KB | 1 年前3
 Google C++ Style Guidefunction/class/variable names. 0 and nullptr/NULL Use 0 for integers, 0.0 for reals, nullptr (or NULL) for pointers, and '\0' for chars. Use 0 for integers and 0.0 for reals. This is not controversial. 40 For pointers0 码力 | 83 页 | 238.71 KB | 1 年前3 Google C++ Style Guidefunction/class/variable names. 0 and nullptr/NULL Use 0 for integers, 0.0 for reals, nullptr (or NULL) for pointers, and '\0' for chars. Use 0 for integers and 0.0 for reals. This is not controversial. 40 For pointers0 码力 | 83 页 | 238.71 KB | 1 年前3
共 2 条
- 1













