所以,我需要一個代碼來從txt文件讀取偶數行。 這是一個任務的例子。Python。文本文件中的偶數行
輸入:
Bravely bold Sir Robin rode forth from Camelot
Yes, brave Sir Robin turned about
He was not afraid to die, O brave Sir Robin
And gallantly he chickened out
He was not at all afraid to be killed in nasty ways
Bravely talking to his feet
Brave, brave, brave, brave Sir Robin
He beat a very brave retreat
輸出:
Yes, brave Sir Robin turned about
And gallantly he chickened out
Bravely talking to his feet
He beat a very brave retreat
那麼,什麼問題?開始[這裏](http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files)。 –