学习地址:http://blog.csdn.net/zyz511919766/article/details/25136485 首先如果我们想简要的打印出日志,可以: import logging logging.debug('i am debug') logging.inof('i am info') logging.warning('i am warning') logging.error('i am error') logging.critical(' i am critical') #打…