elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Security Series.XSS. [Cross Site Scripting]


  Mostrar Mensajes
Páginas: [1]
1  Programación / Java / embeber python con Java en: 5 Agosto 2017, 22:30 pm
ayuda porfa
tengo el siguiente código

 
Código
  1. public static void main(String args[]) {
  2.  
  3.        float a= (float) 280.00;
  4.  
  5.  
  6.        PythonInterpreter interprete = new PythonInterpreter();        
  7.        interprete.execfile("D:\\PYTHON\\Programa_cubo\\Materiales\\ACI.py");
  8.  
  9.        PyObject resultado = interprete.eval("repr(resistencia(float(\"280\"),float(\"55\"),float(\"2\")))");
  10.  
  11.  
  12.        System.out.println(resultado);
  13.  
  14.  
  15.     }

como puedo hacer para que la variable "a" sustituya al valor "float(\"280\")" que esta dentro del modulo resistencia,  no tengo idea de programación lo he hecho por practicar
cualquier ayuda se les agradece.


· Los códigos deben ir en etiquetas GeSHi
>aquí las reglas del foro
-Engel Lex
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines