使用Python加密密碼時使用bz2模塊時出現以下錯誤。在這裏,我將這個加密值保存在數據庫中。 錯誤: ProgrammingError at /signsave/
You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_fac
我想通過兩個列表將連接結果寫入txt.bz2文件(文件名由代碼命名,不存在於開始處)。就像txt文件中的以下表單一樣。 1 a,b,c
0 d,f,g
.......
但是有錯誤。我的代碼如下,請給我提示如何處理它。謝謝! 進口BZ2 x = ['a b c', 'd f g', 'h i k', 'k j l']
y = [1, 0, 0, 1]
with bz2.BZ2File(