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)
之前加一个空格sys.exit(1)或之前删除的空间print "[-] Error: Check your phpvuln.txt path and permissions"和print "[-] Update Failed\n".
| 归档时间: |
|
| 查看次数: |
3118 次 |
| 最近记录: |