美文网首页
'module' object has no a

'module' object has no a

作者: 叫我老村长 | 来源:发表于2018-11-14 09:17 被阅读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。

    相关文章

      网友评论

          本文标题:'module' object has no a

          本文链接:https://www.haomeiwen.com/subject/fsldfqtx.html