来源于: Partitioned Indexes: Global, Local, Prefixed and Non-Prefixed (文档 ID 69374.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 8.0.3.0 and later Information in this document applies to any platform. PURPOSE To differentiate between typ…
Following code explain how 'global' works in the distinction of global variable and local variable. var = 'Global Variable' print(var) def func1(): var = 'Local Variable' print(var) def func2(): print(var) def func3(): global var print (var) var = 'G…