loggin日志分级
import logging logging.debug("debug message") #无打印输出 logging.info("info message") #无打印输出 logging.warning("warning message") #有 logging.error("error message") #有 logging.critical("critical message") #有 # 为什么 从warning开始才有打印呢,因为logging是分等级的,默认是warning以上的级别才打印输出