- 论坛徽章:
- 0
|
没用过python
不过这个管用么,utf8的。
- ailantian@vax:~$ python
- Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
- [GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> print (u'\u751f385\u4e07\uff0c\u536040.5\uff05\uff0c\u7406\u5de5\u7c7b\u8003\u751f565\u4e07\u540d\uff0c\u536059.5\uff05\u3002');
- 生385万,占40.5%,理工类考生565万名,占59.5%。
- >>>
- ailantian@vax:~$ locale
- LANG=en_US.UTF-8
- LC_CTYPE=zh_CN.UTF-8
- LC_NUMERIC="en_US.UTF-8"
- LC_TIME="en_US.UTF-8"
- LC_COLLATE="en_US.UTF-8"
- LC_MONETARY="en_US.UTF-8"
- LC_MESSAGES="en_US.UTF-8"
- LC_PAPER="en_US.UTF-8"
- LC_NAME="en_US.UTF-8"
- LC_ADDRESS="en_US.UTF-8"
- LC_TELEPHONE="en_US.UTF-8"
- LC_MEASUREMENT="en_US.UTF-8"
- LC_IDENTIFICATION="en_US.UTF-8"
- LC_ALL=
- ailantian@vax:~$
复制代码
[ 本帖最后由 ailantian 于 2007-6-9 23:29 编辑 ] |
|