这是我在执行代码时遇到的错误有人能解释一下这意味着什么吗???拜托!!我对python还不熟悉,在一个类项目中使用它只有几个星期,但发现自己迷失了方向。
File "C:/Documents and Settings/xyz/Desktop/FinalPayload", line 62, in <module>
mail("jt.kennings@gmail.com","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
这意味着
attach
是一个列表,而它应该是一个字符串。也许你是想重复一遍?相关问题 更多 >
编程相关推荐