ArcherXu 发表于 2013-1-1 22:37:09

Python类型:types模块

Python类型:types模块

<div class="postText"><div id="cnblogs_post_body">Python内建函数type(object),用于返回当前object对象的类型。例如:
<div class="cnblogs_code">>>> type(1)<type 'int'>>>> type("1")<type 'str'>
页: [1]
查看完整版本: Python类型:types模块