Created
March 13, 2016 04:03
-
-
Save edy4c7/c950301d8f0c4d02b3d1 to your computer and use it in GitHub Desktop.
pythonでズンドコキヨシするやつ(https://twitter.com/kumiromilk/status/707437861881180160)
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
| import re | |
| import random | |
| def main(): | |
| result = '' | |
| while re.search(r'(ズン){4}ドコ$',result) is None: | |
| result += random.choice(['ズン','ドコ']) | |
| result += 'キ・ヨ・シ!!' | |
| print(result) | |
| if __name__ == '__main__': | |
| main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment