csv.writer(f, dialect="excel").writerow( [{"found_year":found_year,"jg_type":jg_type,"area":area,"source_gw_link":source_gw_link,"jianjie":jianjie,"lianxi":lianxi},{"company_news":company_news}, {"name":name,"sex":sex,"company":company,"position":position,"role" :role, "edu_experience":edu_experience,"work_experience": json.dumps(OrderedDict(sorted(work_experience.items()))).encode('utf-8').decode('unicode_escape')}, {"lingyu":lingyu,"jiguan":jiguan,"lunci":lunci,"jieduan":jieduan,"jieshao":jieshao,"money_type":money_type,"touzianlie":json.dumps(OrderedDict (sorted(tzanli.items()))).encode('utf-8').decode('unicode_escape')},{"person_news":json.dumps(OrderedDict(sorted(person_news.items()))).encode('utf-8').decode('unicode_escape')}])這段信息 其中的一段 我打印屏幕上 是這樣的'news_date': '2018.7.17',后來就插入csv 后就變成這樣了""news_date"": ""2018.7.26""
python 在寫入csv 的時(shí)候 多了個(gè)雙引號(hào)
寶慕林4294392
2018-08-10 17:15:24