pycharm shadows name 'xxxx' from outer scope 警告
生活随笔
收集整理的這篇文章主要介紹了
pycharm shadows name 'xxxx' from outer scope 警告
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
如:
你把x換成a,它就不會報錯了:
20200218
把x換成a,不是解決問題的最好辦法
比如我這個:
改成這樣就好了,或者形參后加下劃線,都行
參考文章1:shadows name ‘xxxx’ from outer scope 警告解決
參考文章2:Python PEP8 編碼規范中文版
總結
以上是生活随笔為你收集整理的pycharm shadows name 'xxxx' from outer scope 警告的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tensorflow tf.device
- 下一篇: python 计时器 timeit 报错