chunk = fp.read(block_size) ... count += chunk.count('9'). return count ... 是一個用來構造疊代器的內建函數,但它還有一個更少人知道的用法。
確定! 回上一頁