python3.4写中文字符到csv出现乱码的问题

 时间:2024-11-05 11:10:15

1、出现乱码的源码如下:#usr/bin/python3.4# -*- coding: utf-8 -*-import timeimport csvr_fo=open(r'E:/test.csv',mode='a',encoding='utf8')string_temp="你,好,啊,!\n"r_fo.write(string_temp) r_fo.close()print("job done!")

python3.4写中文字符到csv出现乱码的问题
  • 用VMware 8安装Ubuntu 12.04详细过程
  • 如何使用python语言中的lxml模块组合xml节点
  • MySQL自身缓存使用和设置
  • Access restriction required library rt.jar
  • 如何在VMware 12中安装Ubuntu 16.04
  • 热门搜索
    赏析怎么写 淘宝怎么举报卖家 集美大学怎么样 被蜂蛰了怎么办 学习不好怎么办 牙疼怎么办 立刻止疼 怎么治疗强迫症 莫比乌斯带怎么做 深圳去香港怎么去 佣金怎么算