python中如何判断一个对象是某个类型的数组?
PHP中文网
PHP中文网 2017-04-17 11:31:11
0
2
510

RT, 现有数据[,...]如何用python判断对象是这种类型? 用isinstance(obj,list)不管用

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
小葫芦
>>> a
[0, 1, 2]
>>> isinstance(a,list)
True
小葫芦

lz you can read the article http://blog.csdn.net/suofiya2008/article/details/5587996

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!