#! /usr/bin/env python
# -*- coding: utf-8 -*-
dd = u"野草"
print type(dd)
#Unicode转化为str
dd = dd.encode("utf-8")
print type(dd)
#str转化为Unicode
dd = dd.decode("gbk")
print type(dd)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
dd = u"野草"
print type(dd)
#Unicode转化为str
dd = dd.encode("utf-8")
print type(dd)
#str转化为Unicode
dd = dd.decode("gbk")
print type(dd)