結果 : how to do a format check in python