Last active
June 21, 2017 22:27
-
-
Save naosim/30bfd1e5beb71378aeaa1ee46ecbb298 to your computer and use it in GitHub Desktop.
pythonでパイプを処理する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
i = 0 | |
for line in sys.stdin: | |
print "{0}:{1}".format(i, line.strip()) | |
i = i + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment