python 日常

来源:互联网 发布:网络语大仲马什么意思 编辑:程序博客网 时间:2024/05/28 15:06

判断a是什么类型:

isinstance(a,(int,list,float,str))满足一个返回true

原创粉丝点击