1.IndentationError: expected an indented block
这个的原因是缩进的问题,这一行我忘记加空格了,真的好低级的一个错误呀。
2.FileNotFoundError: [Errno 2] No such file or directory: 'rainfall_March.txt'
第二个奇葩的错误出现了,抄错文件名。
以后真的应该运行之前再检查一遍。
3.TypeError: must be str, not int
1.IndentationError: expected an indented block
这个的原因是缩进的问题,这一行我忘记加空格了,真的好低级的一个错误呀。
2.FileNotFoundError: [Errno 2] No such file or directory: 'rainfall_March.txt'
第二个奇葩的错误出现了,抄错文件名。
以后真的应该运行之前再检查一遍。
3.TypeError: must be str, not int