結果 : how to write a genetic algorithm in python