亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? jython.java

?? 矩陣的QR分解算法
?? JAVA
字號:
/* *    This program is free software; you can redistribute it and/or modify *    it under the terms of the GNU General Public License as published by *    the Free Software Foundation; either version 2 of the License, or *    (at your option) any later version. * *    This program is distributed in the hope that it will be useful, *    but WITHOUT ANY WARRANTY; without even the implied warranty of *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *    GNU General Public License for more details. * *    You should have received a copy of the GNU General Public License *    along with this program; if not, write to the Free Software *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *//* * Jython.java * Copyright (C) 2007 University of Waikato, Hamilton, New Zealand */package weka.core;import java.io.File;import java.io.InputStream;import java.io.Serializable;import java.lang.reflect.Constructor;import java.lang.reflect.Method;import java.util.HashSet;/** * A helper class for <a href="http://www.jython.org/" target="_blank">Jython</a>. *  * @author  fracpete (fracpete at waikato dot ac dot nz) * @version $Revision: 1.1 $ */public class Jython  implements Serializable {  /** for serialization */  private static final long serialVersionUID = -6972298704460209252L;  /** the classname of the Python interpreter */  public final static String CLASS_PYTHONINERPRETER = "org.python.util.PythonInterpreter";    /** the classname of the Python ObjectInputStream */  public final static String CLASS_PYTHONOBJECTINPUTSTREAM = "org.python.util.PythonObjectInputStream";    /** whether the Jython classes are in the Classpath */  protected static boolean m_Present = false;  static {    try {      Class.forName(CLASS_PYTHONINERPRETER);      m_Present = true;    }    catch (Exception e) {      m_Present = false;    }  }    /** the interpreter */  protected Object m_Interpreter;    /**   * default constructor, tries to instantiate a Python Interpreter   */  public Jython() {    m_Interpreter = newInterpreter();  }    /**   * returns the currently used Python Interpreter   *    * @return		the interpreter, can be null   */  public Object getInterpreter() {    return m_Interpreter;  }    /**   * executes the specified method on the current interpreter and returns the    * result, if any   *    * @param o			the object the method should be called from,   * 				e.g., a Python Interpreter   * @param methodName		the name of the method   * @param paramClasses	the classes of the parameters   * @param paramValues		the values of the parameters   * @return			the return value of the method, if any (in that case null)   */  public Object invoke(String methodName, Class[] paramClasses, Object[] paramValues) {    Object	result;        result = null;    if (getInterpreter() != null)      result = invoke(getInterpreter(), methodName, paramClasses, paramValues);        return result;  }    /**   * returns whether the Jython classes are present or not, i.e. whether the    * classes are in the classpath or not   *   * @return 			whether the Jython classes are available   */  public static boolean isPresent() {    return m_Present;  }  /**   * initializes and returns a Python Interpreter   *    * @return			the interpreter or null if Jython classes not present   */  public static Object newInterpreter() {    Object	result;        result = null;        if (isPresent()) {      try {	result = Class.forName(CLASS_PYTHONINERPRETER).newInstance();      }      catch (Exception e) {	e.printStackTrace();	result = null;      }    }    return result;  }  /**   * loads the module and returns a new instance of it as instance of the   * provided Java class template.   *    * @param filename		the path to the Jython module, incl. filename   * @param template		the template for the returned Java object   * @return			the Jython object   */  public static Object newInstance(File file, Class template) {    return newInstance(file, template, new File[0]);  }  /**   * loads the module and returns a new instance of it as instance of the   * provided Java class template. The paths are added to 'sys.path' - can    * be used if the module depends on other Jython modules.   *    * @param filename		the path to the Jython module, incl. filename   * @param template		the template for the returned Java object   * @param paths		additional paths to add to "sys.path"   * @return			the Jython object   */  public static Object newInstance(File file, Class template, File[] paths) {    Object 		result;    String 		tempName;    String 		instanceName;    String 		javaClassName;    String 		objectDef;    int			i;    String[]		tmpPaths;    HashSet<String>	currentPaths;    String		filename;    Object		interpreter;    result = null;    if (!isPresent())      return result;        interpreter = newInterpreter();    if (interpreter == null)      return result;        // add paths to sys.path    if (paths.length > 0) {      invoke(interpreter, "exec", new Class[]{String.class}, new Object[]{"import sys"});      // determine currently set paths      instanceName = "syspath";      invoke(interpreter, "exec", new Class[]{String.class}, new Object[]{instanceName + " = sys.path"});      currentPaths = new HashSet<String>();      try {	tmpPaths = (String[]) invoke(interpreter, "get", new Class[]{String.class, Class.class}, new Object[]{instanceName, String[].class});	for (i = 0; i < tmpPaths.length; i++)	  currentPaths.add(tmpPaths[i]);      }      catch (Exception ex) {	ex.printStackTrace();      }      // add only new paths      for (i = 0; i < paths.length; i++) {	if (!currentPaths.contains(paths[i].getAbsolutePath()))	  invoke(interpreter, "exec", new Class[]{String.class}, new Object[]{"sys.path.append('" + paths[i].getAbsolutePath() + "')"});      }    }    // get object    filename      = file.getAbsolutePath();    invoke(interpreter, "execfile", new Class[]{String.class}, new Object[]{filename});    tempName      = filename.substring(filename.lastIndexOf("/") + 1);    tempName      = tempName.substring(0, tempName.indexOf("."));    instanceName  = tempName.toLowerCase();    javaClassName = tempName.substring(0,1).toUpperCase() + tempName.substring(1);    objectDef     = "=" + javaClassName + "()";    invoke(interpreter, "exec", new Class[]{String.class}, new Object[]{instanceName + objectDef});    try {      result = invoke(interpreter, "get", new Class[]{String.class, Class.class}, new Object[]{instanceName, template});    }    catch (Exception ex) {      ex.printStackTrace();    }    return result;  }    /**   * executes the specified method and returns the result, if any   *    * @param o			the object the method should be called from,   * 				e.g., a Python Interpreter   * @param methodName		the name of the method   * @param paramClasses	the classes of the parameters   * @param paramValues		the values of the parameters   * @return			the return value of the method, if any (in that case null)   */  public static Object invoke(Object o, String methodName, Class[] paramClasses, Object[] paramValues) {    Method      m;    Object      result;        result = null;        try {      m      = o.getClass().getMethod(methodName, paramClasses);      result = m.invoke(o, paramValues);    }    catch (Exception e) {      e.printStackTrace();      result = null;    }        return result;  }  /**   * deserializes the Python Object from the stream   *    * @param in			the stream to use   * @return			the deserialized object   */  public static Object deserialize(InputStream in) {    Class 		cls;    Class[] 		paramTypes;    Constructor 	constr;    Object[] 		arglist;    Object 		obj;    Object 		result;    result = null;    try {      cls        = Class.forName(CLASS_PYTHONOBJECTINPUTSTREAM);      paramTypes = new Class[]{InputStream.class};      constr     = cls.getConstructor(paramTypes);      arglist    = new Object[]{in};      obj        = constr.newInstance(arglist);      result     = invoke(obj, "readObject", new Class[]{}, new Object[]{});    }    catch (Exception e) {      e.printStackTrace();    }        return result;  }    /**   * If no arguments are given, it just prints the presence of the Jython   * classes, otherwise it expects a Jython filename to execute.   *    * @param args		commandline arguments   */  public static void main(String[] args) {    if (args.length == 0) {      System.out.println("Jython present: " + isPresent());    }    else {      Jython jython = new Jython();      if (jython.getInterpreter() == null)	System.err.println("Cannot instantiate Python Interpreter!");      else	jython.invoke("execfile", new Class[]{String.class}, new Object[]{args[0]});    }  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久免费美女视频| 欧美亚洲国产一区二区三区va| 色国产精品一区在线观看| 一区二区三区在线观看国产| 欧美日本乱大交xxxxx| 欧美在线综合视频| 欧洲国产伦久久久久久久| 精品视频1区2区3区| 一区二区三区在线播放| 久久久91精品国产一区二区精品| 精品亚洲成a人在线观看| 日韩视频一区二区| 精品一区二区三区免费视频| 久久久亚洲欧洲日产国码αv| 菠萝蜜视频在线观看一区| 国产精品不卡在线| 欧美人伦禁忌dvd放荡欲情| 国产乱一区二区| 亚洲一区二区三区四区在线免费观看| 884aa四虎影成人精品一区| 国产黄色91视频| 亚洲成人tv网| 国产精品国产精品国产专区不片| 欧美三片在线视频观看 | 高清国产一区二区三区| 一区二区免费视频| 26uuu亚洲| 3d成人h动漫网站入口| 成人在线综合网| 日韩精品电影在线观看| 国产精品国产三级国产aⅴ中文 | 在线视频中文字幕一区二区| 久国产精品韩国三级视频| 日韩精品久久理论片| 午夜久久福利影院| 国模少妇一区二区三区| 国产激情精品久久久第一区二区| 欧美吞精做爰啪啪高潮| 成人动漫一区二区| 国产精品嫩草影院com| 欧美变态tickle挠乳网站| 精品1区2区3区| 日韩精品中文字幕一区二区三区| 国产精品久久久久一区二区三区| 日本高清不卡在线观看| 亚洲伊人伊色伊影伊综合网| 在线播放欧美女士性生活| 日本欧美一区二区| 国产欧美综合色| 欧美性猛交一区二区三区精品| 日本不卡的三区四区五区| 久久久影视传媒| 国产成人精品免费在线| 成人av电影观看| 成人av在线看| 欧美自拍偷拍午夜视频| 91精选在线观看| 色屁屁一区二区| 大陆成人av片| 91免费看`日韩一区二区| 欧美日韩另类一区| 91麻豆精品国产91久久久久久 | 亚洲欧美在线观看| 国产又黄又大久久| 国产成人免费视频一区| 成人免费视频一区二区| 91麻豆精品在线观看| 欧美日本韩国一区二区三区视频 | 欧美精品亚洲一区二区在线播放| 久久99国产乱子伦精品免费| 亚洲欧美中日韩| 欧美变态tickle挠乳网站| 色欧美片视频在线观看| 精品一区二区三区免费播放| 一区二区三区91| 国产日本欧洲亚洲| 欧美久久久久中文字幕| 99久久精品99国产精品| 久久99热国产| 亚洲资源在线观看| 中文字幕av资源一区| 91精品国产综合久久久久| 一本久道久久综合中文字幕| 国产精品1区二区.| 五月婷婷综合网| 亚洲另类中文字| 中国av一区二区三区| 欧美人xxxx| 欧美最猛黑人xxxxx猛交| 成人免费毛片片v| 紧缚捆绑精品一区二区| 亚洲一二三专区| 一区视频在线播放| 国产午夜一区二区三区| 欧美男男青年gay1069videost | 一本到不卡精品视频在线观看| 国产又黄又大久久| 日韩电影在线免费看| 亚洲免费色视频| 国产精品―色哟哟| 欧美精品一区二区三区很污很色的 | 久久这里只有精品首页| 91麻豆精品国产自产在线观看一区| 色综合天天狠狠| 成人动漫一区二区在线| 国产精品99久久久久久有的能看 | 91麻豆精品国产91久久久久| 色婷婷av一区| av福利精品导航| 成人午夜电影网站| 国产成人一区在线| 国产福利91精品一区二区三区| 激情另类小说区图片区视频区| 三级影片在线观看欧美日韩一区二区 | 国产1区2区3区精品美女| 国内成+人亚洲+欧美+综合在线 | 午夜精品视频在线观看| 亚洲一区二区av电影| 一区二区欧美视频| 一个色综合av| 亚洲在线成人精品| 一区二区三区在线免费观看| 一区二区在线免费| 一区二区三区 在线观看视频| 曰韩精品一区二区| 一级中文字幕一区二区| 亚洲一区二区影院| 亚洲午夜国产一区99re久久| 亚洲一区二区三区在线看| 亚洲国产裸拍裸体视频在线观看乱了 | 午夜激情一区二区| 天堂va蜜桃一区二区三区漫画版| 亚洲成av人在线观看| 日韩精品乱码av一区二区| 日本不卡一区二区三区 | 日本中文一区二区三区| 日本午夜一区二区| 免费人成在线不卡| 老司机精品视频在线| 狠狠v欧美v日韩v亚洲ⅴ| 国产高清在线精品| 成人免费电影视频| 色猫猫国产区一区二在线视频| 日本精品免费观看高清观看| 欧美视频中文字幕| 91精品国产综合久久福利| 精品日产卡一卡二卡麻豆| 国产亚洲一区二区三区在线观看 | 国内精品伊人久久久久av一坑| 国产精品911| 99r国产精品| 欧美日韩一本到| 91麻豆精品久久久久蜜臀| 精品福利视频一区二区三区| 中文字幕 久热精品 视频在线| 日韩理论片一区二区| 亚洲成年人影院| 国产真实乱对白精彩久久| 国产91精品免费| 91官网在线免费观看| 91精品婷婷国产综合久久| 久久综合色播五月| 国产精品国产馆在线真实露脸 | 日韩三级视频中文字幕| 国产亚洲人成网站| 樱桃国产成人精品视频| 日本一不卡视频| 高清视频一区二区| 欧美日韩一区二区三区视频| 精品免费国产一区二区三区四区| 亚洲国产激情av| 亚洲高清视频的网址| 国精产品一区一区三区mba视频| 成人污污视频在线观看| 在线看日韩精品电影| 精品国产污污免费网站入口| 亚洲欧洲av色图| 青娱乐精品在线视频| 不卡欧美aaaaa| 日韩一区二区三区四区五区六区| 中文字幕精品综合| 午夜精品一区二区三区三上悠亚| 国产一区91精品张津瑜| 在线看日本不卡| 久久久久9999亚洲精品| 亚洲网友自拍偷拍| 国产.欧美.日韩| 欧美精品九九99久久| 欧美国产欧美亚州国产日韩mv天天看完整| 亚洲午夜免费视频| 国产精品2024| 91精品国产综合久久福利软件| 国产精品乱人伦中文| 香蕉久久夜色精品国产使用方法| 国产高清亚洲一区| 69堂亚洲精品首页| 1区2区3区欧美| 国产在线日韩欧美| 欧美精品v日韩精品v韩国精品v| 国产精品系列在线|