my-docs
Pythonで取得したテキストの行数を取得する
2017-10-11
python
num_lines
=
sum
(
1
for
line
in
open
(text))