Q
?
A -
Informatica
search
Login
Remember
Register
New Activity
Questions
Unanswered
Tags
Categories
Users
Course
News
FAQs
Do you need any help?
Ask a Question
Notice Board
# ANDRÀ TUTTO BENE
# IO RESTO A CASA
Prossime date d'esame (e scadenze)
INTERNALERROR???
Situazione complessiva voti
Bonus PA
Bonus Q2A
Eserciziario Python
Regole del corso
SOFTWARE DA INSTALLARE
Libri scontati o gratis, software e IDE
Info generali sul corso e diario delle lezioni/esercitazioni
WTF Python!
Time complexity dei metodi
TUTTI GLI HW sono linkati qui sotto (prossima scadenza 23:59 del 24/10/20)
Exams
Test
Grades
Attachments
Esame 29-10-20
check
link
Esame 17-9-20
check
link
Esame 20-7-20
check
link
Esame 26-6-20
check
link
Esame 6-5-20
check
link
Esame 19-2-20
check
Esame 29-1-20
check
link
HW 8 rec
link
HW 6 rec
link
HW 8 obb
link
HW 7 opz
link
HW 4 rec
link
HW 6 obb
link
HW 5 opz
link
HW 2 rec
link
HW 4 obb
link
HW 3 opz
link
HW 2 obb
link
HW 1 opz
link
436
questions
1.264
answers
1.607
comments
726
users
Related questions
Debug spyder come funziona?
Most popular tags
homework
python
homework6
ricorsione
avvisi
aiuto
homework8
obbligatorio
peer-assessment
homework-di-recupero
homework2
hw4
hw6
voti
homework4
recupero
test
hw8
prova-di-esame
vm
esame
esercitazioni
hw2obb
opzionale
peer-assessment-formativo
soluzioni
hw2
hw4rec
hw7
test-segreti
hm4
hwm2rec
liste
problema
tempi
anaconda
bonus
esame-20-7-20
eserciziario
help
homework8rec
informazioni
pa
spyder
algoritmo
ammessi
appello-straordinario
esame-17-9-20
esame-29-1-20
esame-29-10-20
DEBUG ALBERI!
M
Michelangelo00
(1050 points)
2
3
8
asked
Jan 27, 2020
in
Eserciziario Python
by
Michelangelo00
(
1,050
points)
Come posso fare il debug nelle funzioni con gli alberi?
263
views
spyder
help
debug
4
answer
Please
log in
or
register
to answer this question.
2 Answers
Andrea Sanchietti
(3100 points)
4
7
40
answered
Jan 28, 2020
by
Andrea Sanchietti
(
3,100
points)
Io di solito se l'albero non è troppo grande entro continuamente nelle funzioni ricorsive che chiamo finché non trovo l'errore.
3
comment
M
Michelangelo00
(1050 points)
2
3
8
commented
Jan 29, 2020
by
Michelangelo00
(
1,050
points)
ho provato, ma non riesco a seguirlo troppo bene!
Please
log in
or
register
to add a comment.
Tommaso Sgroi
(12990 points)
6
11
91
answered
Jan 28, 2020
by
Tommaso Sgroi
(
12,990
points)
Puoi utilizzare i metodi all'interno di albero.py, usi fromList(lista) e gli passi in input una lista presa dai test.
fromList trasforma una lista in un albero, così puoi debuggare tranquillamente.
4
comment
M
Michelangelo00
(1050 points)
2
3
8
commented
Jan 29, 2020
by
Michelangelo00
(
1,050
points)
grazie, non sapevo di questo metodo, a breve proverò!
Tommaso Sgroi
(12990 points)
6
11
91
commented
Jan 29, 2020
by
Tommaso Sgroi
(
12,990
points)
Fai attenzione, perché ogni tanto in albero.py fromList è definita come metodo, altre come funzione!
Quindi prima di richiamarla vedi in albero.py come è definita.
Ultima cosa, se lo trovi sotto forma di metodo (quindi definito nella classe Albero) dovrai richiamarlo tramite l'oggetto. Se guardi nei test vedrai come viene usato.
Please
log in
or
register
to add a comment.