4.Python的版本

Python2: 英文支持没问题,中文报错,默认编码:ascii码

    显示中午需要添加代码在首行:# -*- encoding:utf -8 -*-

    用户交互  raw_input 

    python2 里还存在 long int 数据类型

Python3:支持中英文编码,默认编码为utf -8

    用户交互为input 输入

    Python3里没有long int的整型数据类型.

原文地址:https://www.cnblogs.com/mengbin0546/p/8318610.html