I need to write a yaml file in a format like:
abc:0 "def"
my current solution is to make a dict like:
{abc:'0 "def"'}
but if I use yaml.dump(dict,file)
to write it, it will become:
abc: 0 "def"
(there is a space after the colon, before the values.)
how can I remove the space after the colon?
=====================================================================
or the question could be:
if I make a dict like:
{abc:'"def"'}
then the output will be
abc: "def"
then how can I add a '0' after the colon?
Thanks!