1. 日志-logging

最后更新于:2022-04-02 07:44:49

#### 打印日志 ```python # 共5个级别 logging.info('this is info log.') logging.debug('This is debug log') logging.warning('this is warning log') logging.error('this is error log') logging.critical('this is critical log') ``` 默认debug和info并没有打印 ``` # 设置默认打印级别后,debug和info都正常打印 logging.basicConfig(level=logging.DEBUG) ```
';