How to write list of string into csv file with identation?

Viewed 11

I have the following list of strings (in python):

00: @@ -19,9 +19,6 @@ void Cube<eT>::serialize(Archive& ar, const unsigned int /* version */)  
01:   // mem_state will always be 0 on load, so we don't need to save it.
02:   if (Archive::is_loading::value)
03:   {
04: -    // Clean any mat pointers.
05: -    delete_mat();
06: -
07:     // Don't free if local memory is being used.
08:     if (mem_state == 0 && mem != NULL && old_n_elem > arma_config::mat_prealloc)
09:      {

I want to save this list of strings into a csv cell with its format including indentation. How can I do that in python?

0 Answers
Related