#!/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)
Vì vậy, tôi đang thực hiện một chương trình để kiểm tra xem tệp có tải trọng "ErrorScatter" hay không. Vì tôi là một newb tôi không biết làm thế nào để sửa lỗi này.Loại PythonError: liên kết với Unicode: cần chuỗi hoặc bộ đệm, tuple tìm thấy
Đây là lỗi tôi nhận được:
TypeError: coercing to Unicode: need string or buffer, tuple found
Nếu có ai biết làm thế nào để sửa lỗi này?
'fixpath = filepath +"/Nội dung/MacOS/ErrorScatter "' –
Cảm ơn Man. nó đã làm việc. : D: D – ACiDRAiN