strint = "32" if isinstance(strint, str): print "String" print int(strint) x = 10 print str(x) print `x` print "%d" % x print int('10')
String 32 10 10 10 10
No comments:
Post a Comment