結果 : how to check if string is a digit python