fileinput 是Python 的內建模組,但我相信,不少人對它都是陌生的。 ... import fileinput with fileinput.input(files=('a.txt',)) as file: for ...
確定! 回上一頁