本文整理汇总了Python中mygengo.MyGengo.unicode2utf8方法的典型用法代码示例。如果您正苦于以下问题:Python MyGengo.unicode2utf8方法的具体用法?Python MyGengo.unicode2utf8怎么用?Python MyGengo.unicode2utf8使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mygengo.MyGengo
的用法示例。
在下文中一共展示了MyGengo.unicode2utf8方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from mygengo import MyGengo [as 别名]
# 或者: from mygengo.MyGengo import unicode2utf8 [as 别名]
# -*- coding: utf-8 -*-
#!/usr/bin/python
from mygengo import MyGengo
# This method doesn't require an instance of MyGengo, it's
# purely utility. You'll possibly end up using it to ensure
# that your data is utf-8 encoded before submitting it to myGengo;
# if your method calls fail, this is probably the first thing you should
# check!
MyGengo.unicode2utf8("私は")