tanakahdaのプログラマ手帳

プログラミングとかソフトウェア開発とかの備忘録

テキストの行数を数える@Python3

print (sum(1 for line in text))