第1章-3 输出“Python语言简单易学” (10分)

输入格式:

输出格式:

输出一句短语,Python语言简单易学。

如果包含汉字,用"print(s.encode("utf-8"))"输出.

如:

     s="人生苦短,我学Python"  
     print(s.encode("utf-8"))
 

输入样例:

 

输出样例:

"人生苦短,我学Python" 的输出:

b'xe4xbaxbaxe7x94x9fxe8x8bxa6xe7x9fxadxefxbcx8cxe6x88x91xe5xadxa6Python'
解答
1 s = "Python语言简单易学"
2 print(s.encode("utf-8"))
 
原文地址:https://www.cnblogs.com/dreamcoding/p/12419106.html