python logging 替代print 输出内容到控制台和重定向到文件时间:2023-03-08 20:58:58转自:http://blog.****.net/z_johnny/article/details/50740528