How many lines are there in python large file statistics

num_col = 0;

with open('xxx/xxx.xxx','rb') as fi:

  while(fi.readline() !=''):

    num_col = num_col + 1;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324547962&siteId=291194637