我試圖提取年份並在單獨的新列上打印,並保持新列對齊。從列中提取信息並將其打印到單獨的對齊列上
這裏的輸入文件:
0000000124 462910 8.8 Star Wars: Episode V - The Empire Strikes Back (1980)
0000000124 698356 8.8 The Lord of the Rings: The Fellowship of the Ring (2001)
0000000233 393855 8.8 One Flew Over the Cuckoo's Nest (1975)
0000000124 733447 8.7 Inception (2010)
0000000233 411397 8.7 Goodfellas (1990)
000000.7 Star Wars (1977)
0000000124 146841 8.7 Shichinin no samurai (1954)
000000.7 Forrest Gump (1994)
000000.7 The Matrix (1999)
000000.7 The Lord of the Rings: The Two Towers (2002)
0000000233 309137 8.7 Cidade de Deus (2002)
0000000232 548307 8.6 Se7en (1995)
0000000232 459707 8.6 The Silence of the Lambs (1991)
我怎樣才能在這樣一個單獨的列幾年?
0000000124 462910 8.8 Star Wars: Episode V - The Empire Strikes Back 1980
0000000124 698356 8.8 The Lord of the Rings: The Fellowship of the Ring 2001
0000000233 393855 8.8 One Flew Over the Cuckoo's Nest 1975
0000000124 733447 8.7 Inception 2010
0000000233 411397 8.7 Goodfellas 1990
000000.7 Star Wars 1977
0000000124 146841 8.7 Shichinin no samurai 1954
000000.7 Forrest Gump 1994
000000.7 The Matrix 1999
000000.7 The Lord of the Rings: The Two Towers 2002
0000000233 309137 8.7 Cidade de Deus 2002
0000000232 548307 8.6 Se7en 1995
0000000232 459707 8.6 The Silence of the Lambs 1991
也許您可以嘗試一些內容,然後回到一個真正的編程問題。這是一個問答網站,而不是「爲我工作」網站。問題應該顯示研究。 – shodanex
問題必須**表明對正在解決的問題的最小理解**。告訴我們你試圖去做什麼,爲什麼它沒有工作,以及它應該如何工作。另請參閱:[堆棧溢出問題清單](http://meta.stackexchange.com/questions/156810/stack-overflow-question-checklist) – devnull