我真的看不出我代码中的问题在哪里。我得到的错误是 java.lang.NoSuchMethodError: 'void org.eclipse.jetty.server.SslConnectionFactory.<init>(org.eclipse.jetty.util.ssl.SslContextFactory, java.lang.String)'
但我不明白它来自哪里。如果我从函数中删除 if/else,则不会出现错误。如果我用一个简单的 NameError: name 'display_string' is not defined
替换它也一样。
display_string = "something"
完整回溯:
def show_table(self, rows = [], move = "none"):
display_string = ""
def display(value = ""):
global display_string
if value == "":
display_string += "\n"
else:
display_string += str(value)
有人可以帮忙解决问题吗?