Skip to content

Instantly share code, notes, and snippets.

@noblejasper
Last active December 17, 2016 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noblejasper/a2a13769e5a476a5ac037544c74a7e10 to your computer and use it in GitHub Desktop.
Save noblejasper/a2a13769e5a476a5ac037544c74a7e10 to your computer and use it in GitHub Desktop.
# 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