結果 : how to write api code in python