Home
Python Tutorial
Introduction
Data Type
Statement
Operator
String
Tuple
List
Dictionary
Collections
Function
Class
File
Buildin Function
Buildin Module
Database
Regular Expressions
Thread
Tkinker
wxPython
XML
Network
CGI Web
Windows
The identifiers listed in a global statement refer to the global variables that the function needs to rebind. : Variable Scope « Introduction « Python Tutorial
Python Tutorial
Introduction
Variable Scope
_count = 0 def counter( ): global _count _count += 1
return
_count
1.6.Variable Scope
1.6.1.
The identifiers listed in a global statement refer to the global variables that the function needs to rebind.