Python determines whether an object is a string type

From , 3 Years ago, written in Python, viewed 52 times.
URL https://pastebin.vip/view/0a3df703
  1. print isinstance(('sharejs.com','haotu.net','baidu.com'), tuple)
  2. print isinstance('http://www.sharejs.com', basestring)
  3.  
  4. 返回结果:
  5. True
  6. True

Reply to "Python determines whether an object is a string type"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website