Python 全集变量

1、添加关键字:

  global

  在要给变量从新赋值的时候添加。

  全局变量都大写,局部变量都小写。

原文地址:https://www.cnblogs.com/youmingkuang/p/7517836.html