import sys if isinstance(var, basestring if sys.version_info[0]<3 else str): print("it is string") # var is string
No comments:
Post a Comment