2017-03-01 8 views

答えて

0

これはいかがですか? (stdoutに書き込み、標準入力から読み込み。)

import sys 

for line in sys.stdin: 
    if 'r' not in line: 
     print(line) 

使用例:

$ python program.py <months_file> months_without_r_file 
関連する問題