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
相關文章
相關標籤/搜索