-2
這是執行我的代碼時得到的錯誤有人可能會解釋這是什麼意思?請!!我剛接觸python的時候,只用了幾個星期的時間來完成一個課程項目,但卻發現自己迷失了方向。TypeError:強制爲Unicode:需要字符串或緩衝區,發現列表
File "C:/Documents and Settings/xyz/Desktop/FinalPayload", line 62, in <module>
mail("[email protected]","python test","payload from python test",results)
File "C:/Documents and Settings/xyz/Desktop/FinalPayload", line 42, in mail
part.set_payload(open(attach, 'rb').read())
TypeError: coercing to Unicode: need string or buffer, list found
您需要向我們顯示您的代碼。我們不是千里眼。 – 2012-03-21 04:38:45