UnboundLocalError

It can be a surprise to get the UnboundLocalError in previously working code when it is modified by adding an assignment statement somewhere in the body of a function. 在一个函数内部的某个地方,对一个变量通过赋值来修改的时候,遇到U
相关文章
相关标签/搜索