B
Boris Mok
Hi all,
I'm doing a function which needs return an arrary -- or more specially a
dictionary data type.
I have a sample like this
def AFC():
v["a"] = 1
return v
v = AFC()
print v["a"]
with error
NameError: global name 'v' is not defined
how do I go about it?
Thanks in advance.
Boris Mok
I'm doing a function which needs return an arrary -- or more specially a
dictionary data type.
I have a sample like this
def AFC():
v["a"] = 1
return v
v = AFC()
print v["a"]
with error
NameError: global name 'v' is not defined
how do I go about it?
Thanks in advance.
Boris Mok