Last active
August 29, 2015 14:09
-
-
Save icoxfog417/0498b273d5841d6096b1 to your computer and use it in GitHub Desktop.
bonjovi generator 元ネタ: https://twitter.com/yagiyyyy/status/473405016540053504
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
# -*- 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