attrs import sys import string string digits string __dict__ digits sy

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#attrs
import sys
import string
string.digits
string.__dict__['digits']
sys.modules['string'].digits
getattr(string, 'digits')
#import
modname = "xml.sax"
exec "import %s" % modname
exec "from %s import %s" % ("xml", "sax")
#reload
import module
reload(module)
from module import function