文章目录 Linux学习日志--基本指令② 前言 touch cp (copy) mv (move) rm vim 输出重定向(> 或 >>) cat df(disk free) free head tail less wc(word count) date cal clear(快捷键ctrl+L) 管道"|" hostname id whoami ps top du -sh 结语 Linux学习日志--基本指令② 前言 今天又进一步学习了Linux指令,分别是:to
1.简单的将日志打印到屏幕 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 默认情况下,logging将日志打印到屏幕,日志级别为WARNING:日志级别大小关系为:CRITICAL > ER