📜  python 类变量 make blobal - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:07.982000             🧑  作者: Mango

代码示例1
x = 10

class myClass1():
  global x # This takes the variable x outside this class