How to output Chinese in python3

藏色散人
Release: 2019-10-25 10:33:32
Original
3096 people have browsed it

How to output Chinese in python3

How does python3 output Chinese?

Question 1: How to add Chinese comments in programming?

#  -*-  coding:utf-8  -*-
Copy after login

How to output Chinese in python3

Question 2: How to output Chinese?

Documentation--Set file encoding--Unicode--utf-8

Python 3.X source files use UTF-8 encoding by default, so there is no need to specify UTF-8 encoding.

How to output Chinese in python3

Recommended: "python tutorial"

The above is the detailed content of How to output Chinese in python3. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template