# -*- coding: utf-8 -*-

#查看安装的SDK默认的编码字符集在脚本中可以修改你的编码格式, 方法如下:
#sys.getdefaultencoding()
#reload(sys)
#sys.setdefaultencoding('UTF-8')
#sys.getdefaultencoding()

#方法1 在语句中进行强制的编码转换,格式如下:
#shuzi = raw_input (unicode('请输入日期:','utf-8').encode('gbk'))
#方法2 直接使用Unicode 不要用2中默认的编码
msg=u'尼玛的'
print(msg)

相关文章:

  • 2021-06-08
  • 2021-11-16
  • 2022-01-01
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2021-07-29
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
相关资源
相似解决方案