try {
File f = new File("console.py");
Process p = Runtime.getRuntime().exec("python " + f.getCanonicalPath()+" parametro1 parametro2 ");
InputStream is = p.getInputStream();
int i = 0;
StringBuffer sb = new StringBuffer();
while((i=is.read())!=-1)
sb.append((char)i);
this.print(sb.toString());
} catch (Exception e) {
// TODO: handle exception
}
import sys
list=[]
for ar in sys.argv:
list.append(ar)
list.pop(0)
for a in list:
print ("hola {}".format(a))