[effective python]改善python代码的91个建议-chapter1
## 建议1 使用pep8校验代码规范性
pep8 --first test.py
长字符串换
print 'You\'d need to know \'bout escapes with' \
'\\ that do \n newlines and \t tabs.'
或
print ('You\'d need to know \'bout escapes with'
原创
2017-03-28 14:39:01 ·
487 阅读 ·
0 评论