我不知道下面怎么了。。。IF语句上不断出现语法错误。你知道吗
#Specify a key file
keyfile="C:\Python27/keepasskey"
try:
debug = Debug()
if os.path.isfile(keyfile):
print "[+] Keyfile Loaded: '" + keyfile + "'"
aProcess = debug.execv(['KeePass.exe', 'Database.kdb', '-keyfile:' + keyfile, '-pw:'.ljust(WORD_SIZE+4)])
else:
print "[+] Specified keyfile '" + keyfile + "' does not exist, ignoring argument"
aProcess = debug.execv( ['KeePass.exe', 'Database.kdb', '-pw:'.ljust(WORD_SIZE+4)])
提前谢谢!你知道吗
您需要缩进您的
if
语句,以便它可能在try
语句的范围内,或者您需要将except
放在try
之后if
之前。像这样:相关问题 更多 >
编程相关推荐