Created
April 4, 2020 01:23
-
-
Save showyou/957e19a2a6e36d63461387e56ea88179 to your computer and use it in GitHub Desktop.
x日後にyするz
This file contains 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 random | |
days = random.randint(1,101) | |
action = random.choice(["死ぬ", "生きる", "結婚する", "食べる", "進化する", "辞職する", "産卵する"]) | |
target = random.choice(["ワニ", "カエル"]) | |
text = "%s日後に%s%s" % (days, action, target) | |
print(text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ python generator.py
14日後に食べるカエル