python 2.x 和python3.x 区别
时间:2019-02-01 10:56:28
收藏:0
阅读:162
运行第一个py文件:
python3x :python 文件路径 回车
python2x :python2 文件路径 回车
python2 python3 区别:python2默认编码方式是ascii码
解决方式:在文件的首行:#-*- encoding:utf-8 -*-或# -*- coding: utf-8 -*-
python3 默认编码方式utf-8
原文:https://www.cnblogs.com/laoyw/p/10344840.html
评论(0)