num_lines = sum(1 for line in open(input_file_name))

相关文章: