提示:nameError:name 'a' is not defined就像這樣:def example():a = 0print a這樣就不行。有時候在while,for這樣的循環里面的局部變量也不能在外面用,提示也是說沒有定義,但是有時候又可以。求大神指點迷津 查看完整描述