Created
January 1, 2014 14:52
-
-
Save shiumachi/8208585 to your computer and use it in GitHub Desktop.
botのsaying listをcsvに変換する
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
# text converter | |
# source file: | |
# [string]: [string] | |
# convert to csv: | |
# [string],[string] | |
import sys | |
for line in sys.stdin: | |
name, word = line.rstrip().split(': ') | |
print("{0},{1}".format(name, word)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment