摘要:
一、实现并发的里两种方式 # 第一种 from multiprocessing import Process import time class MyProcess(Process): def run(self): print(f'{name} is running') time.sleep(3) 阅读全文
摘要:
1、什么是异常 异常是程序发生错误的信号,程序一旦出错就会抛出异常,程序的运行随即终止 print('start....') [1,2,3][1000] print('stop...') # IndexError: list index out of range 1.1 异常处理的三个特征: 异常的 阅读全文