Skip to content

Instantly share code, notes, and snippets.

@firstspring1845
Created August 11, 2014 19:58
Show Gist options
  • Save firstspring1845/f2a6829aaf1d2cbec806 to your computer and use it in GitHub Desktop.
Save firstspring1845/f2a6829aaf1d2cbec806 to your computer and use it in GitHub Desktop.
ユーザーSNのリストをKrileQueryに変換するスクリプト
a = ['user == "{0}"'.format(s.strip()) for s in open('user.txt')]
b = 'from all where \n' + ('|\n').join(a)
open('query.txt','w').write(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment