python筆記之編碼轉換

1.decode和encode  s.decode('utf-8').encode('utf-8') decode():是解碼 encode()是編碼 isinstance(s,unicode):判斷s是否是unicode編碼,如果是就返回true,否則返回false 2.規則:   3.python  內存字符串唯一  unicode 4.python打開圖片: 5.python2與python
相關文章
相關標籤/搜索