python--汉字字符处理

1、输出一串汉字字符串python #-*—coding:utf8-*- def txt_test(): string = u'今天你有毒!' print string txt_test() 输出: web 2、输出字符串长度svg #-*—coding:utf8-*- def txt_test(): string = '今天你有毒!' print string
相关文章
相关标签/搜索