2011-06-07

PythonとPerlを比較(1)

まずPerlの
  while(<>){ print; }
と同等のスクリプトはどう書くのか?

import sys
for line in sys.stdin:
    print(line),

人気記事