python之 数据类型判定与类型转换
摘要:
一、 判断数据类型 0、type(x)type()可以接收任何东西作为参数――并返回它的数据类型。整型、字符串、列表、字典、元组、函数、类、模块,甚至类型对象都可以作为参数被 type 函数接受。 >>> type(1) <type 'int'>>>> li = []>>> type(li) <ty 阅读全文
posted @ 2017-12-10 18:04 张冲andy 阅读(995) 评论(0) 推荐(0)
浙公网安备 33010602011771号