about pyyaml questions!

T

Thanatos xiao

Hi Guys:
Now I use pyyaml to load a yaml file, after I dump this load data,but I
found an questions,before I load the yaml file,the file looks like:

aaaa
-
-b
-c
-
-e
-x

after I dump this data and write file, the file looks like:
aaaa
- -b
-c
- -e
-x

although when dump file, I have set default_flow_style=False

Can the dumped file the same as original file....?

ths.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top