标签:asc nbsp number alt python 2 sci lin ascii python3
运行第一个py文件:
python3x :python 文件路径 回车
python2x :python2 文件路径 回车
python2 python3 区别:python2默认编码方式是ascii码
解决方式:在文件的首行:#-*- encoding:utf-8 -*-或# -*- coding: utf-8 -*-
python3 默认编码方式utf-8
标签:asc nbsp number alt python 2 sci lin ascii python3
原文地址:https://www.cnblogs.com/laoyw/p/10344840.html