1.安装Python2.7版本,通过pyCharm输入end语句报错如下:
报错原因:
end是python3.X的语法,对应python2.X版本中运行编码时,导入 from __future__ import print_function即可。
结果如下:
注意需要将 #coding:utf-8 写入,转码输出中文
1.安装Python2.7版本,通过pyCharm输入end语句报错如下:
报错原因:
end是python3.X的语法,对应python2.X版本中运行编码时,导入 from __future__ import print_function即可。
结果如下:
注意需要将 #coding:utf-8 写入,转码输出中文
主要记录了函数以及函数的参数、返回值、执行、传参、作用域等内容。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M