LoginSignup
3

More than 5 years have passed since last update.

指定した文字列を含む行を出力

Last updated at Posted at 2013-12-31

http://qiita.com/qt-luigi/items/76f7955d68418f967efb
これ私ならこうしますね。

for line in open("テキストファイル.txt"):
    if "検索文字" in line:
        print line,

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
3