Python exercise 1.3 output "Python language is easy to learn"

Input format:

no

Output format:

Output a phrase, Python language is easy to learn.

If it contains Chinese characters, use "print (s.encode (" utf-8 "))" to output.

code show as below:

#! / usr / bin / python 
#-*-coding: utf-8-*-
 
s = " Python language is easy to learn "
 print (s. encode (" utf-8 "))

encode () method encoding specified encoding format string.

This question is encoded and output with utf-8.

There is always a book and fitness on the road

Guess you like

Origin www.cnblogs.com/Renqy/p/12707664.html