python encoding有哪些选择

str=str2.encode(encoding='unicode_escape') #ansi ,GBK,gb2312,utf-8,utf-16,ascii,unicode_escape
posted @ 2023-01-31 18:11  只为。  阅读(28)  评论(0)    收藏  举报