結果 : how to code genetic algorithm in python