I am new to python, and I am using a global variable to control my design easily, especially for debugging.
Here is my code:
hidNow = -1
def loginFromSql(br, n=0):
global hidNow
print hidNow
hidNow = 5566
print hidNow
print(hidNow)
And I run python directly with "from myModule import *"
Before calling the function, print hidNow get the result of -1, but it still -1 even the function is called....
Is it a bug in python? I am using python 2.7.5
Thanks!
