2013-08-05 型判定 Python pythonのオブジェクトの型判定。 at ngi644の日記insinstanceを使うよ。 a = '1' print isinstance(a, str) # True print isinstance(a, int) # False