2018年4月16日

摘要: 使用type() 首先,我们来判断对象类型,使用type()函数: 基本类型都可以用type()判断: >>> type(123) <type 'int'> >>> type('str') <type 'str'> >>> type(None) <type 'NoneType'> 如果一个变量指向函 阅读全文

posted @ 2018-04-16 10:03 彭仲秋 阅读(91) 评论(0) 推荐(0) 编辑