jeudi 13 août 2015

Passing in params to \N{name} unicode string

My question is; Do we in python have a workaround for passing in named params into an escaped unicode segment? for example

print u"No... haha {name} is a \N{MALE SIGN}".format(name = 'lisa', gender = 'MALE')

to

print u"No... haha {name} is a \N{{gender} SIGN}".format(name = 'lisa', gender = 'MALE')



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire