Skip to content

Instantly share code, notes, and snippets.

@icoxfog417
Last active August 29, 2015 14:09
Show Gist options
  • Save icoxfog417/0498b273d5841d6096b1 to your computer and use it in GitHub Desktop.
Save icoxfog417/0498b273d5841d6096b1 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
import random
bonjovi = ("ボ","ン","ジョ","ヴィ")
bons = []
while "".join(bons[-6:]) != "ジョンボンジョヴィ":
bons += [random.choice(bonjovi) for x in range(2 if len(bons) > 0 else 6)]
with open("bonjovi.txt", "w") as result:
result.write("・".join([ "".join(x) for x in zip(bons[0::2], bons[1::2])]))
result.write("\n{0} Bon Jovis".format(len(bons) // 6))
result.write(
"\n_人人人人人人人人人人人人人人_\n" + \
"> You Give Love a Bad Name <\n" + \
" ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y ̄")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment