結果 : code for a star algorithm in python