global variables
Дамјан Г.
пенгуиниста at маил?=.=?iso-8859-5?Q?нет?=.=?iso-8859-5?Q?мк
Fri Oct 19 13:02:45 EDT 2001
> IДm experiencing a little problem due to my
> poor understanding of the way python handles
> global variables. Basically the problem is the following
> I have a programm with several variables which
> I would like to access globaly.
var=0
def example_function(??)
global var
var=var+1
(function definition)
print example_function(10)
--
Дамјан
Човечки е да се греши, за да стварно заебеш треба да си root.
More information about the Python-list
mailing list