运行脚本时出现Python错误 - "IndentationError:unindent与任何外部缩进都不匹配"

Swi*_*tch -4 python syntax indentation

我尝试运行脚本时收到错误

Error:"IndentationError: unindent does not match any outer indentation"
Run Code Online (Sandbox Code Playgroud)

抛出错误的代码snipet:

def update():
    try:
        lines = open("vbvuln.txt", "r").readlines()
    except(IOError): 
         print "[-] Error: Check your phpvuln.txt path and permissions"
         print "[-] Update Failed\n" 
        sys.exit(1)
    try:
Run Code Online (Sandbox Code Playgroud)

这是出现错误的实际行:

print "[-] Update Failed\n" 
Run Code Online (Sandbox Code Playgroud)

Dan*_*yar 6

之前加一个空格sys.exit(1)或之前删除的空间print "[-] Error: Check your phpvuln.txt path and permissions"print "[-] Update Failed\n".