[Python]基础教程(2)、PyCharm安装及中文编码

一、PyCharm安装

http://blog.csdn.net/yctjin/article/details/70307933?locationNum=11&fps=1

这篇文章写得及其详细,根据其步骤即可进行安装。

二、中文编码

我们可以正常的输入输出英文,比如hello world

当我们需要输出中文时,

解决方法为只要在文件开头加入 # -*- coding: UTF-8 -*- 或者 #coding=utf-8 就行了。

PS:所以如果大家在学习过程中,代码中包含中文,就需要在头部指定编码。

原文地址:https://www.cnblogs.com/little-monkey/p/7470704.html