摘要:
Python Files All In One
open, read, write, append, binary, close
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202307/740516-20230728235137738-1331662877.png)
摘要:
Python exceptions All In One
ImportError: an import fails;
IndexError: a list is indexed with an out-of-range number;
NameError: an unknown variable is used;
SyntaxError: the code can't be parsed properly;
TypeError: a function is called on a value of an inappropriate type;
ValueError: a function is called on a value of the correct type, but with an inappropriate value.
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202307/740516-20230728233204085-1705703005.png)