We’ll have more to say about style as our programs become more complex, but a few pointers will be helpful already:
- use 4 spaces for indentation 缩进4个空格
- imports should go at the top of the file 应该在文件顶部导入
- separate function definitions with two blank lines 单独的函数定义直接有2行空格
- keep function definitions together 函数定义应该放在一起
- keep top level statements, including function calls, together at the bottom of the program 高级语句包括函数调用,应该一起放在程序的底部