'module' object has no a

2018-11-14  本文已影响6人  叫我老村长

I have the following code, copied from the Python manual:

import logging LOG_FILENAME = 'example.log' logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG) logging.debug('This message should go to the log file')

解决办法:
你的文件名字起了logging。

上一篇 下一篇

猜你喜欢

热点阅读