Home > Article > Backend Development > How to output Chinese in python3
How does python3 output Chinese?
Question 1: How to add Chinese comments in programming?
# -*- coding:utf-8 -*-
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.
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!