logging

[b]1.簡單的將日誌打印到屏幕[/b] import logging logging.debug('This is debug message') logging.info('This is info message') logging.warning('This is warning message') #屏幕上打印: WARNING:root:This is warning message
相關文章
相關標籤/搜索