[Tips] python 判断一个对象类型

type(params).__name__=='dict'
type(params).__name__=='list'

  

posted @ 2019-08-16 11:40  虚无真仙  阅读(564)  评论(0编辑  收藏  举报