Pythons global variable [duplicate]

Possible Duplicate:
Using global variables in a function other than the one that created them

How can I define a global variable.

For example I have Foo1 class and Foo2 class and I want to use FooVariable in this classes as a global variable.

Comments 2

发表评论

电子邮件地址不会被公开。 必填项已用*标注