Home >Backend Development >Python Tutorial >How to output Chinese in python3

How to output Chinese in python3

藏色散人
藏色散人Original
2019-10-25 10:33:323132browse

How to output Chinese in python3

How does python3 output Chinese?

Question 1: How to add Chinese comments in programming?

#  -*-  coding:utf-8  -*-

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!

Statement:
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