【发布时间】:2015-05-03 18:37:17
【问题描述】:
#!/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”有效负载,但在测试我的创作时我不断遇到错误。由于我是新手,我不知道如何解决这个问题。
这是我得到的错误:
TypeError: coercing to Unicode: need string or buffer, tuple found
有人知道如何解决这个问题吗?
【问题讨论】:
-
fixpath = filepath + "/Contents/MacOS/ErrorScatter" -
谢谢伙计。有效。 :D :D
标签: python operating-system tuples typeerror