The first day of the Python course, there was a coding problem.

Source: Internet
Author: User

Python Chinese display garbled, already at the beginning with coding:utf-8 or garbled.

In the python2.7 will garbled, in Python3 not, so it is fixed in the compiler pycharm problem.

Here's how to fix it:

1. Open the Settings icon in toolbar

650) this.width=650; "title=" QQ picture 20170207230145.png "Src=" http://s5.51cto.com/wyfs02/M00/8D/61/ Wkiom1iz4x2chowyaab7msdlapq511.png-wh_500x0-wm_3-wmp_4-s_2044916945.png "alt=" Wkiom1iz4x2chowyaab7msdlapq511.png-wh_50 "/>

650) this.width=650; "title=" QQ picture 20170207225530.jpg "style=" Float:none; "src=" http://s5.51cto.com/wyfs02/M02/8D/61 /wkiom1iz4dpxglauaad8isbc5c8511.jpg-wh_500x0-wm_3-wmp_4-s_3810247436.jpg "alt=" Wkiom1iz4dpxglauaad8isbc5c8511.jpg-wh_50 "/>

The first step in place is as simple as this:

Toolbar (setting) ==>editor===>code style==>file encodings==>ide encoding:utf-8; Project encoding:utf-8;default Encoding for prooerties files:utf-8 (full change UTF-8) ===>ok (Enter)


650) this.width=650; "title=" QQ picture 20170207225457.png "style=" Float:none; "src=" Http://s2.51cto.com/wyfs02/M01/8D/5E /wkiol1iz4dlgqcdraajihiz-pxg526.png-wh_500x0-wm_3-wmp_4-s_3726687382.png "alt=" Wkiol1iz4dlgqcdraajihiz-pxg526.png-wh_50 "/>

650) this.width=650; "title=" QQ picture 20170207225611.png "style=" Float:none; "src=" http://s1.51cto.com/wyfs02/M02/8D/61 /wkiom1iz4dwgyv3haadsqravtl4680.png-wh_500x0-wm_3-wmp_4-s_3796315561.png "alt=" Wkiom1iz4dwgyv3haadsqravtl4680.png-wh_50 "/>



The end.

This article is from the "Pcjazz" blog, make sure to keep this source http://520527.blog.51cto.com/510527/1895890

The first day of the Python course, there was a coding problem.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.