在Python 中,我们可以使用字符串对象的 encode() 方法将字符串编码为UTF-8 编码格式。 以下是一个简单的例子: s = '你好,世界!' utf8_s = s.encode('utf ...
確定! 回上一頁