a file object itself is a iter object.
so, we can just:
f = open(file_name)
line_count = 0
for x in f:
line_count += 1
so, we can just:
f = open(file_name)
line_count = 0
for x in f:
line_count += 1
2015-06-11
@mooc3r
请问,有没有ipython notebook的教程,一直不知道ipython notebook怎么用自动补全
请问,有没有ipython notebook的教程,一直不知道ipython notebook怎么用自动补全
2015-06-08