类内置方法: 模块 是将一组函数放在一起共享公共的主题;将其存储在一个.py文件中;使用import命令导入。 Python3中部分函数 异常捕捉
try: fh = open('testfile','W') fh.write('This is a testfile') except IOError: print('IOError') else: print('Done') fh.close()
异常名称与描述: