count = len(open(thefilepath).readlines( )). For a truly huge file, this may be very slow or even fail to work. If you have to worry about humongous files, ...
確定! 回上一頁