python 手记

1.类型判断

lst = [1,2,3]

type(lst)

if isinstance(lst, list)

    print ‘lst is list’

原文地址:https://www.cnblogs.com/Mingxx/p/1957343.html