import types
aaa = 0
print type(aaa)
if type(aaa) is types.IntType:
print "the type of aaa is int"
if isinstance(aaa,int):
print "the type of aaa is int"
bbb = 'hello'
print type(bbb)
if type(bbb) is types.StringType: ...
5-12 4,722 views
import types
aaa = 0
print type(aaa)
if type(aaa) is types.IntType:
print "the type of aaa is int"
if isinstance(aaa,int):
pri...