Skip to content

Instantly share code, notes, and snippets.

@shiumachi
Created January 1, 2014 14:52
Show Gist options
  • Save shiumachi/8208585 to your computer and use it in GitHub Desktop.
Save shiumachi/8208585 to your computer and use it in GitHub Desktop.
botのsaying listをcsvに変換する
# 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