Ciao Maria Teresa

Il giorno lun 6 lug 2020 alle ore 07:01 maria teresa panunzio
<mariateresa.panun...@yahoo.it> ha scritto:
>
> Ciao a tutti,
>
> ho un oggetto QueueFrontier che fa un attributo frontier che è una lista di 
> oggetti Node.
> Un oggetto Node ha tre attributi (state,parent,action).
> Vorrei visualizzare lo stato di tutti i nodi presenti sulla frontiera mano a 
> mano che si procede con aggiunte e rimozioni da essa.
>
> Pur avendo previsto il metodo __str__ sia nella classe Node che nella classe 
> QueueFrontier, non riesco ad ottenere ciò che voglio ma solo la 
> visualizzazione di quali posizioni in memoria occupano gli oggetti.

Curioso

> Si tratta del programma degrees.py del corso Cs50Ai su Edx.
> Se necessario carico su pastebin.

Potrebbe essere utile, sì

> Grazie
> Maria Teresa

㎝

-- 
!!!! THE 🍺-WARE LICENSE (Revision ㊷):
    <㎝🐌🐍.🇮🇹> wrote this 📧. As long as you retain this notice you can
    do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a 🍺 in return. — ㎝
_______________________________________________
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python

Rispondere a