ContributePreguntasPublicacionesEtiquetas
VIKEnut'
Iniciar sesiónRegistrarse

Es

РусскийPolskiDeutschPortuguês

Tema oscuro

Escribir
Iniciar sesiónRegistrarse

Tema oscuro

Es

РусскийPolskiDeutschPortuguês

¡Eres muy activo! ¡Es genial!

Regístrese para continuar usando todas las funciones de Techfeed

Registrarse

¿Ya estás registrado?SignInAction

Etiquetas Populares

verbatimfind-in-setuser-preferencespolymerpreemptiondapper-extensionsbrowser-closedjango-middlewarefile-writinggwt-super-dev-modeolap-cubedetailviewthreadstaticmysql-5.6google-pagespeedcreatefolderxmodemsystem-shutdowncoffdrupal-modules

Preguntas relacionadas

2

¿Cómo escribir archivos wav estéreo en Python?

2

python argparse: ¿Cómo puedo mostrar la ayuda automáticamente en caso de error?

3

salida del subproceso de Python sin \ n

3

Carga de datos usando matrices en Python

5

pd.rolling_mean está en desuso - alternativas para ndarrays

Oct 17, 2012, 06:26 PM
 
pythonattributeerrorclass

Python: la instancia no tiene atributo

Tengo un problema con la lista dentro de una clase en python. Aquí está mi código:

class Residues:
    def setdata(self, name):
        self.name = name
        self.atoms = list()

a = atom
C = Residues()
C.atoms.append(a)

Algo como esto. Me sale un error diciendo:

AttributeError: Residues instance has no attribute 'atoms'

Respuestas a la pregunta(1)

Su respuesta a la pregunta

Preguntas populares

0 la respuesta

¿Cómo recuperar una cadena de AsyncTask?

0 la respuesta

Cómo usar la opción if-else en JSTL

0 la respuesta

¿Cómo etiqueto archivos de texto con hunpos en nltk?

0 la respuesta

Mover Constructor vs Copiar Elision. ¿Cuál se llama?

0 la respuesta

LinqToExcel para cargar el diccionario

© 2020. Todos los derechos reservados
Hecho con amor 

Es

РусскийPolskiDeutschPortuguês