Transcript

Jython

Jython

JythonJythonJythonJythonJythonJavaJythonJythonJythonJython

JythonJythonJavaPythonPythonJava JythonCPythonJythonCPython JythonPythonJavaJython(int, float, long, complex)1, 1.0, 1L, 1+1JBoolean(bool)Flase, True(str)Oh my lady gaga, Jython!, Oh my lady gaga, Jython!(list)[1, abc, 1j, 1.0, 1L](dict){message:hello}(tuple)(1,2), (1,), ()(None)None(type)type()(class)class T:pass; type(T) # classobj(instance)t=T(); type(t) #instance(function)def test():pass; type(test) #function(instancemethod)class T: def test(self):pass; type(T.test) # instancemethod

: Flase=[], {}, (), , 0, 0.0, 0L, 0J, NoneJython(Code)

classobj:instancemethod:instance:function:systemstate:javapackage:Javamodule:Jython() __init__(self,)

:Jython,Java __init__ __init__ Jython(Code)

doc,str,str()Jython(Code)

*v **vJython:+ - * / % ** += -= *= /= %= **=~ | & ^ >> >=


Top Related