Python 编程核心 - Chapter9练习
# 9-8
mn = raw_input('Please Input Module Name:')
module = __import__(mn)
attr_list = dir(module)
# print attr_list
for obj in attr_list:
print 'Name:', obj
print 'Type:', type(getattr(modul
原创
2016-03-26 15:54:23 ·
431 阅读 ·
0 评论