<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div class="ydp20edf649yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div><br></div><div><br></div>
</div><div id="ydp678881dcyahoo_quoted_4074733859" class="ydp678881dcyahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Il lunedì 6 luglio 2020, 09:02:01 CEST, ㎝ <cm@python.it> ha scritto:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">Ciao Maria Teresa<br clear="none"><br clear="none">Il giorno lun 6 lug 2020 alle ore 07:01 maria teresa panunzio<br clear="none"><<a shape="rect" href="mailto:mariateresa.panunzio@yahoo.it" rel="nofollow" target="_blank">mariateresa.panunzio@yahoo.it</a>> ha scritto:<br clear="none">><br clear="none">> Ciao a tutti,<br clear="none">><br clear="none">> ho un oggetto QueueFrontier che fa un attributo frontier che è una lista di oggetti Node.<br clear="none">> Un oggetto Node ha tre attributi (state,parent,action).<br clear="none">> Vorrei visualizzare lo stato di tutti i nodi presenti sulla frontiera mano a mano che si procede con aggiunte e rimozioni da essa.<br clear="none">><br clear="none">> 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.<br clear="none"><br clear="none">Curioso<br clear="none"><br clear="none">> Si tratta del programma degrees.py del corso Cs50Ai su Edx.<br clear="none">> Se necessario carico su pastebin.<br clear="none"><br clear="none">Potrebbe essere utile, sì<div class="ydp678881dcyqt3320878297" id="ydp678881dcyqtfd89877"><br clear="none"><br clear="none">> Grazie<br clear="none">> Maria Teresa</div><br clear="none"><br clear="none">㎝</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br clear="none"><br clear="none">-- <br clear="none">!!!! THE 🍺-WARE LICENSE (Revision ㊷):<br clear="none"> <㎝🐌🐍.🇮🇹> wrote this 📧. As long as you retain this notice you can<br clear="none"> do whatever you want with this stuff. If we meet some day, and you<br clear="none"> think this stuff is worth it, you can buy me a 🍺 in return. — ㎝<br clear="none">_______________________________________________<br clear="none">Python mailing list<br clear="none"><a shape="rect" href="mailto:Python@lists.python.it" rel="nofollow" target="_blank">Python@lists.python.it</a><br clear="none"><a shape="rect" href="https://lists.python.it/mailman/listinfo/python" rel="nofollow" target="_blank" class="enhancr_card_4115234709">Pagina di informazioni della lista Python</a><div class="ydp678881dcyqt3320878297" id="ydp678881dcyqtfd91124"><br clear="none"></div></div><div><br></div><div id="ydp3e5b1102enhancr_card_4115234709" class="ydp3e5b1102yahoo-link-enhancr-card ydp3e5b1102yahoo-link-enhancr-not-allow-cover ydp3e5b1102ymail-preserve-class ydp3e5b1102ymail-preserve-style" style="max-width: 400px; font-family: YahooSans, Helvetica Neue, Segoe UI, Helvetica, Arial, sans-serif; position: relative;" data-url="https://lists.python.it/mailman/listinfo/python" data-type="YENHANCER" data-size="MEDIUM" contenteditable="false"><a href="https://lists.python.it/mailman/listinfo/python" style="text-decoration:none !important;color:#000 !important" class="ydp3e5b1102yahoo-enhancr-cardlink" rel="nofollow" target="_blank"><table border="0" class="ydp3e5b1102card-wrapper ydp3e5b1102yahoo-ignore-table" cellpadding="0" cellspacing="0" style="max-width:400px"><tbody><tr><td width="400"><table border="0" class="ydp3e5b1102card ydp3e5b1102yahoo-ignore-table" cellpadding="0" cellspacing="0" width="100%" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224, 228, 233);border-radius:2px"><tbody><tr><td><table border="0" class="ydp3e5b1102card-info ydp3e5b1102yahoo-ignore-table" cellpadding="0" cellspacing="0" style="background:#fff;position:relative;z-index:2;width:100%;max-width:400px;border-radius:0 0 2px 2px;border-top:1px solid rgb(224, 228, 233)"><tbody><tr><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px"></td><td style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;font-family:YahooSans, Helvetica Neue, Segoe UI, Helvetica, Arial, sans-serif;border-radius:0 0 2px 0"><h2 class="ydp3e5b1102card-title" style="font-size: 14px; line-height: 19px; margin: 0px 0px 6px; font-family: YahooSans, Helvetica Neue, Segoe UI, Helvetica, Arial, sans-serif; color: rgb(38, 40, 42); max-width: 314px;">Pagina di informazioni della lista Python</h2><p class="ydp3e5b1102card-description" style="font-size: 12px; line-height: 16px; margin: 0px; color: rgb(151, 155, 167);"></p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a><div class="loadingSpinnerContainer" style="position: absolute; top: 0px; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-color: rgba(255, 255, 255, 0.3);"><div class="D_F F_n gl_C ab_C H_6MGW o_h"><div class="W_6MGW H_6MGW D_X ah_1PEzoz" data-test-id="loading_indicator"><svg class="W_6MGW H_6MGW ah_Zq6hUs" viewBox="0 0 24 24" width="24" height="24"><path class="cdPFi_n cZ13pKbK_Z2aVTcY cZ1XO2Ji_dRA c2abBOT_EY cZ1vNhDV_rd cZV8aCd_pI ah_14s73" d="M12,22C6.477,22,2,17.523,2,12S6.477,2,12,2"></path><path class="cdPFi_n cZ13pKbK_Z2aVTcY cZ1XO2Ji_dRA c2abBOT_EY cZ1vNhDV_rd cZV8aCd_pI ah_14s73" d="M12,2c5.523,0,10,4.477,10,10s-4.477,10-10,10"></path></svg></div></div></div></div><div>Grazie cm, in realtà io vorrei ottenere, con un'unica print, la visualizzazione di tutti gli oggetti (solo attributo state) che si trovano sulla lista. denominata frontier, attributo dell'oggetto denominato frontier della classe QueueFrontier.</div><div dir="ltr" data-setdir="false">Dopo il mio messaggio di richiesta aiuto, ho ottenuto l'informazione che desideravo ottenere introducendo un ciclo che, elemento,per elemento, cicli sulla lista e mi visualizzi lo stato del nodo.</div><div dir="ltr" data-setdir="false">MI chiedo, però, se per una lista di interi, io posso visualizzare l'intero contenuto con una sola print, perchè non dovrebbe essere possibie se si tratta di lista di oggetti?</div><div dir="ltr" data-setdir="false"><span><a href="https://pastebin.com/gvkWrn0Y" rel="nofollow" target="_blank" class="enhancr_card_4571556538">ciclo forse necessario per visualizzare intera lista - Pastebin.com</a></span><div><br></div><div id="ydpae825410enhancr_card_4571556538" class="ydpae825410yahoo-link-enhancr-card ydpae825410ymail-preserve-class ydpae825410ymail-preserve-style" style="max-width:400px;font-family:YahooSans, Helvetica Neue, Segoe UI, Helvetica, Arial, sans-serif" data-url="https://pastebin.com/gvkWrn0Y" data-type="YENHANCER" data-size="MEDIUM" contenteditable="false"><a href="https://pastebin.com/gvkWrn0Y" style="text-decoration:none !important;color:#000 !important" class="ydpae825410yahoo-enhancr-cardlink" rel="nofollow" target="_blank"><table border="0" class="ydpae825410card-wrapper ydpae825410yahoo-ignore-table" cellpadding="0" cellspacing="0" style="max-width:400px"><tbody><tr><td width="400"><table border="0" class="ydpae825410card ydpae825410yahoo-ignore-table" cellpadding="0" cellspacing="0" width="100%" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224, 228, 233);border-radius:2px"><tbody><tr><td class="ydpae825410card-primary-image-cell" background="https://s.yimg.com/lo/api/res/1.2/0SL261JtrdFNtmmh1qYY9A--~A/Zmk9ZmlsbDt3PTQwMDtoPTIwMDthcHBpZD1pZXh0cmFjdA--/https://pastebin.com/i/facebook.png.cf.jpg" bgcolor="#000000" valign="top" height="175" style="background-color: rgb(0, 0, 0); background-size: cover; position: relative; border-radius: 2px 2px 0px 0px; min-height: 175px;"><!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:396px;height:175px;position:absolute;top:0;left:0;"><v:fill type="frame" color="#000000" src="https://s.yimg.com/lo/api/res/1.2/0SL261JtrdFNtmmh1qYY9A--~A/Zmk9ZmlsbDt3PTQwMDtoPTIwMDthcHBpZD1pZXh0cmFjdA--/https://pastebin.com/i/facebook.png.cf.jpg"/></v:rect><![endif]--><table border="0" class="ydpae825410card-overlay-container-table ydpae825410yahoo-ignore-table" cellpadding="0" cellspacing="0" style="width:100%"><tbody><tr><td class="ydpae825410card-overlay-cell" background="https://s.yimg.com/cv/ae/nq/storm/assets/enhancrV21/1/enhancr_gradient-400x175.png" bgcolor="transparent" valign="top" style="background-color: transparent; border-radius: 2px 2px 0px 0px; min-height: 175px;"><!--[if gte mso 9]><v:rect fill="true" stroke="false" style="width:396px;height:175px;position:absolute;top:-18px;left:0;"><v:fill type="pattern" color="#000000" src="https://s.yimg.com/cv/ae/nq/storm/assets/enhancrV21/1/enhancr_gradient-400x175.png"/><v:textbox inset="0,0,20px,0"><![endif]--><table border="0" class="ydpae825410yahoo-ignore-table" height="175" style="width: 100%; min-height: 175px;"><tbody><tr><td class="ydpae825410card-richInfo2" style="text-align:left;padding:15px 0 0 15px;vertical-align:top"></td><td class="ydpae825410card-actions" style="text-align:right;padding:15px 15px 0 0;vertical-align:top"><div class="ydpae825410card-share-container"></div></td></tr></tbody></table><!--[if gte mso 9]></v:textbox></v:rect><![endif]--></td></tr></tbody></table></td></tr><tr><td><table border="0" align="center" class="ydpae825410card-info ydpae825410yahoo-ignore-table" cellpadding="0" cellspacing="0" style="background:#fff;position:relative;z-index:2;width:100%;max-width:400px;border-radius:0 0 2px 2px;border-top:1px solid rgb(224, 228, 233)"><tbody><tr><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px"></td><td style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;font-family:YahooSans, Helvetica Neue, Segoe UI, Helvetica, Arial, sans-serif;border-radius:0 0 2px 0"><h2 class="ydpae825410card-title" style="font-size: 14px; line-height: 19px; margin: 0px 0px 6px; font-family: YahooSans, Helvetica Neue, Segoe UI, Helvetica, Arial, sans-serif; color: rgb(38, 40, 42); max-width: 314px;">ciclo forse necessario per visualizzare intera lista - Pastebin.com</h2><p class="ydpae825410card-description" style="font-size: 12px; line-height: 16px; margin: 0px; color: rgb(151, 155, 167);"></p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a></div><div><br></div><div><br></div><br></div><div><br></div></div>
</div>
</div></body></html>