C:\Python27\Scripts>python task_test.pyTraceback (most recent call last): File "task_test.py", line 2, in <module> import unittest File "C:\Python27\lib\unittest\__init__.py", line 58, in <module> from .result im…
最近做项目需要用java调用python,配置了jython后,运行了例子代码: 获得一个元组里面的元素: import org.python.util.PythonInterpreter; public class FirstJavaScript { public static void main(String args[]) { PythonInterpreter interpreter = new PythonInterpreter(); interpreter.exec("days=('…