Posts by Isac Sandin • 33 points
2 posts
-
1
votes1
answer731
viewsQ: Uncaught Exception 'Dompdf_exception' with message 'No block-level Parent found. Not good. '
am having a problem generating a pdf file from an html string. the error reported is as follows:: Uncaught exception 'DOMPDF_Exception' with message 'No block-level parent found. Not good.' The PDF…
-
2
votes2
answers991
viewsA: Do word search inside a list and return tuples sorted in PYTHON
def count_words(s, n): top_n = [] itens = n words = s.split() top_n = dict([]) for w in words: if w not in top_n.keys(): top_n[w] = 0 top_n[w] +=1 top_n = list(top_n.items()) #print(top_n)…