SheMeansBlogging
Data and Cookie Consent
with open('data.txt', 'a') as outfile: for hostDict in ....: json.dump(hostDict, outfile) outfile.write('\n') If you mean you want each variable within hostDict to be on a new line: with open('data.txt', 'a') as.
By clicking “Accept” you consent to these technologies which will allow us and
fy
to process non-sensitive data such as IP address, unique ID, and browsing data for the purposes of serving personalized ads and content, ad and content measurement, audience insights, and to develop and improve products.
Your choices on this site will be applied only for this site. You can change your settings at any time, including withdrawing your consent, by going to the
ek
page of this site.
ib
ku