結果 : how to check nonetype object in python