import os for file in os.listdir("/mydir"): if file.endswith(".txt"): ... 1 The pathlib module was included in the standard library in python 3.4.
確定! 回上一頁