Section thirty-eighth metaclass

a = 13
print('sssss')

def Are AAAA ():
     to the print ( , ' CCC ,' )

def bbbb():
    pass

# Globals () can view the dictionary of global variables 
Print (Globals ())

# By calling the function key globals aaaa to go 
globals () [ ' aaaa ' ] ()

'''
In fact, built-in function calls and global variables, are the keys to traverse through globals go looking for,
First find common key-value pairs can not find again '__builtins__' in looking to see whether the built-in function, if not find, it will error
'' ' 
# View All built-in functions 
Print (Globals () [ ' the __builtins__ ' ]. The __dict__ )

# Call the print function 
Globals () [ ' the __builtins__ ' ]. The __dict__ [ ' print ' ] ( ' hahah ' )

 

Guess you like

Origin www.cnblogs.com/kogmaw/p/12602592.html