print isinstance(('sharejs.com','haotu.net','baidu.com'), tuple) print isinstance('http://www.sharejs.com', basestring) 返回结果: True True