摘要: 1. type函数 name = "This is a string" print(type(name)) # <class 'str'> print("*" * 10, "分界线", "*" * 10) cls = type('Foo', (), {}) f = cls() print(type( 阅读全文
posted @ 2018-06-12 23:09 TimLinux 阅读(153) 评论(0) 推荐(0) 编辑