这是我在 Jython 中实际编写的类示例:
from threading import Thread
class MyClass(Thread)
def __init__(self, mylist):
Thread.__init__(self)
self.mylist = mylist
我得到了错误:
File 'myfile.py', line 4, in __init__ at java.lang.Class.isAssignableFrom(Native Method)
java.lang.NullPointerException: java.lang.NullPointerException