local f_1 = 1;
local f_2 = 1;
local sum = f_1 + f_2;
for i = 1, 10 do
print(sum)
f_1 = f_2;
f_2 = sum; sum = f_1 + f_2;end
連輸出斐波那契序列,都很難理解,適合干編程嗎?
qq_花開(kāi)花謝_0
2019-01-31 21:41:14