然而, 在Python語言, 可以直接用for迴圈來跑過list的項目: ... def find(seq, target): for i, value in enumerate(seq): if value == target: break ...
確定! 回上一頁