class Log: def __init__(self, path): dirname = os.path.dirname(path) ... Check that the file is newline-terminated size = os.path.getsize(path) if size > 0: ...
確定! 回上一頁