Skip to content

Instantly share code, notes, and snippets.

@danilovazb
Created November 3, 2014 14:18
Show Gist options
  • Save danilovazb/9c78de7280389ec4175b to your computer and use it in GitHub Desktop.
Save danilovazb/9c78de7280389ec4175b to your computer and use it in GitHub Desktop.
arquivoIBGE = "contribuintes" + "-" + str(now.day) + str(now.month) + str(now.year) + ".csv"
arquivoGrava = open(arquivoIBGE,'a')
arquivoGrava.write("%s,%s,%s,%s,%s,%s,%s,%s" % \
(mun.strip(),val_popu_estimada2014.strip(),val_popu_estimada2010.strip(),val_uni_territorial.strip(),\
val_dens_demografica.strip(),val_cod_municipio.strip(),val_gentilico.strip(),val_prefeito.strip()+"\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment