6
#!/usr/bin/env python
import sys
import os
print "Scan a file for ""ErrorScatter"" payload"
print "Drag the suspicious file here then press enter."
filepath = raw_input("File Location: ")
fixpath = filepath , "/Contents/MacOS/ErrorScatter"
scan = os.path.exists(fixpath)
,所以我做节目,以检查文件是否具有“ErrorScatter”有效载荷但在测试我的创作时,我不断跨越和错误来。由于我是一个新手,我不知道如何解决这个问题。Python的类型错误:强迫为Unicode:需要字符串或缓冲区,元组发现
这是错误我越来越:
TypeError: coercing to Unicode: need string or buffer, tuple found
有没有人知道如何解决这一问题?
'fixpath = filepath +“/ Contents/MacOS/ErrorScatter”' – 2015-03-03 07:44:58
谢谢男人。有效。 :D:D – ACiDRAiN 2015-03-03 07:48:42