13 lines
258 B
Python
13 lines
258 B
Python
print('starting 2')
|
|
import sys
|
|
|
|
reload(sys)
|
|
sys.setdefaultencoding('utf8')
|
|
|
|
num_lines = sum(1 for line in open('./Infra/wikiniews_results.tsv'))
|
|
|
|
print('lines number')
|
|
print(num_lines)
|
|
file = open('num_lines.txt', 'w')
|
|
file.write(str(num_lines))
|
|
file.close() |