摘要:f = open(path+file.name, 'wb+')for c in file.chunks():f.write(c)f.close() 腦抽把chunks前邊的file換成了f,導致出現錯誤,仔細想想確實是對文件切片不是對讀出來的切片 '_io.BufferedRandom' object has no attribute 'ch
f = open(path+file.name, 'wb+')for c in file.chunks():f.write(c)f.close()
腦抽把chunks前邊的file換成了f,導致出現錯誤,仔細想想確實是對文件切片不是對讀出來的切片
'_io.BufferedRandom' object has no attribute 'chunks'