學習python日志部分的內容,遇到一個小問題,感覺很疑惑,向老司機們求助
代碼是很簡單的兩句
import logging
logging.warning('Here is warning information')
我如果在python IDLE中寫,就不會出現問題,控制臺上會出現如下的內容:
WARNING:root:here is warning
但是如果我用VSCODE來這么做的話,就會出現問題,問題如下:
AttributeError: partially initialized module 'logging' has no attribute 'warning' (most likely due to a circular import)
請問這是什么原因,謝謝!
uj5u.com熱心網友回復:
沒人看嗎?大神們都在忙什么轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/52679.html
