This inspection detects shadowing names defined in outer scopes.

错误信息:This inspection detects shadowing names defined in outer scopes.

检查到波浪处的单词已在函数外部定义。

解决:使用global关键字或nonlocal 关键字或改名

posted @ 2019-07-01 18:52  菜鸡一枚  阅读(3048)  评论(0)    收藏  举报