原创 孫行者定身術+時間機器-Generator in Python(正文)

書接上回,爲什麼需要coroutine?我們採用一個經典而淺顯的案例:計算Fibnacci數列。翠花,上代碼(C代碼): void get_fib(int n, int* result) { int i = 0; for (i