• Sábado 20 de Abril de 2024, 01:50

Autor Tema:  Migrar codigo de java a python  (Leído 2034 veces)

jarain78

  • Nuevo Miembro
  • *
  • Mensajes: 1
    • Ver Perfil
Migrar codigo de java a python
« en: Sábado 21 de Julio de 2012, 17:35 »
0
hola a todos, tengo una pequeña pregunta, tengo este código en java:

// Clases
CityType[] cities = new CityType[MAX_CITIES];
AntType[] ants = new AntType[MAX_ANTS];

public class CityType {
  public float x;
  public float y;
}

public class AntType {
  public int curCity;
  public int nextCity;
  public short[] tabu = new short[MAX_CITIES];
  public int pathIndex;
  public short[] path = new short[MAX_CITIES];
  public double tourLength;
}

y lo quiero migrar a python, como se podría hacer.

gracias por la ayuda