TypeError: cannot use a string pattern on a bytes-like object解決方案

TypeError: cannot use a string pattern on a bytes-like object解決方案 圖片: 類型匹配問題,一個是string類型,一個是bytes類型,應將string類型的數據轉化爲’utf-8’,即s = s.decode(‘utf-8’)。
相關文章
相關標籤/搜索