結果 : change java code to python