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]