title: How to append row to dictwriter python
body: <p>I have the following code to create and write the csvfile.</p>
  
  <pre><code>with open("A:\\example_results\\testing.csv", "w") as csvfile:
              writer = csv.DictWriter(csvfile, fieldnames = ['first_name', 'last_name'], dialect="excel", delimiter=";")
              writer.writeheader()
              writer.writerow({'first_name': 'Baked', 'last_name': 'Beans'})
              writer.writerow({'first_name': 'Lovely', 'last_name': 'Spam'})
              writer.writerow({'first_name': 'Wonderful', 'last_name': 'Spam'})
  </code></pre>
  
  <p>Later if I want to open the file and append rows into it, how do I get the dictwriter and do the job. Now I am doing like this,</p>
  
  <pre><code>with open("A:\\example_results\\testing.csv", "a") as csvfile:
      writer = csv.DictWriter(csvfile, fieldnames = ['first_name', 'last_name'], dialect="excel", delimiter=";")
      writer.writerow({'first_name': 'asdasdasd', 'last_name': 'asdasd'})
  </code></pre>
  
  <p>But why should I specify all the parameters again inside DictWriter ? Is there a cleaner way to do this ?</p>