很简单的一个程序: label = "label" user = "user" out_put = "emitting notice {} to {}".format(label, user) print out_put