python 手记

1.类型判断

lst = [1,2,3]

type(lst)

if isinstance(lst, list)

    print ‘lst is list’

posted @ 2011-02-17 20:56  Mingxx  阅读(317)  评论(2编辑  收藏  举报