摘要: 1 import types 2 x=20 3 4 print type(x) 5 6 print x.__class__ #判断x的类型 7 8 print x #x的值,20 9 10 x=12311 12 print globals() #{'__builtins__': , '__file__': 'test.py', '__package__': None, 'x': 123, '__name__': '__main__', '__doc__': None, 阅读全文
posted @ 2013-07-29 15:15 尹少爷 阅读(379) 评论(0) 推荐(0) 编辑