Thanks. I'll write my own split().
do you want to split character by character?
then use
list(u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32')
--
http://mail.python.org/mailman/listinfo/python-list
Hi:
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on
win32
Type help, copyright, credits or license for more information.
u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'
u.split()
[u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32']
I think u should get split.
--Frank
--
Thomas Moore:
u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'
u.split()
[u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32']
I think u should get split.
Where do you think 這是中文字串 should be split and why?
Neil
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Moore:
u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'
u.split()
[u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32']
I think u should get split.
Where do you think 這是中文字串 should be split and why?
Isn't a unicode string character by character?
-Frank
--
Thomas Moore wrote:
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on
win32
Type help, copyright, credits or license for more information.
u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'
u.split()
[u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32']
I think u should get split.
Hi:
Thanks. I'll write my own split().
Frank
--
http://mail.python.org/mailman/listinfo/python-list