Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# coding=utf-8
parameters = dict(
owner=u"のぶじゃす",
name=u"31歳独身貴族日記",
action=u"楽しく暮らす",
target=u"山とカメラとプログラム",
)
formats = [
u"{owner} の {name}",
u"{target} で {action} {name}",
u"{target} で {action} {owner} の {name}",
u"{owner} が {target} で {action} {name}",
]
for format_text in formats:
print format_text.format(**parameters)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment