2017-03-01 186 views

回答

0

這個怎麼樣? (讀取從stdin,寫入stdout)

import sys 

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

示例用法:

$ python program.py <months_file> months_without_r_file 
相關問題