Home  >  Article  >  Backend Development  >  How to output Chinese in python

How to output Chinese in python

silencement
silencementOriginal
2019-05-20 19:59:2111638browse

How to output Chinese in python

For python3.0 or above, the default encoding format. So we don't have to think about string encoding.

#You can use the print statement to output Chinese in python. For example, in command line mode output

How to output Chinese in python

and in interactive mode output

How to output Chinese in python

The above is the detailed content of How to output Chinese in python. 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
Previous article:How to check python pathNext article:How to check python path