python能够改变变量作用域的代码段是def、class、lamda. if/elif/else、try/except/finally、for/while 不改变 变量搜索路径是:本地变量->全局变量