Posts by cryptotux • 131 points
4 posts
-
1
votes1
answer451
viewsA: How to sort and sequence data from a file
Somewhat confusing question,and pasting the code instead of printing would also help...anyway,if I understood correctly you want each ID to be replaced by a corresponding number,incrementing a unit…
-
5
votes1
answer6005
views -
1
votes1
answer1007
viewsA: How to take a specific data type from a text file
Correcting the function verifica_codigo_cliente() # Identação errada def verifica_codigo_cliente(): # "a+" = read e append.A função só faz leitura,substitua por 'r' arquivo_cliente =…
-
3
votes2
answers1795
viewsA: How to create a PDF from Dictionary data extracted from a . txt (Python) file
Install the reportlab: pip install reportlab Creating the PDF and saving: from reportlab.pdfgen import canvas c = canvas.Canvas("arquivo.pdf") #(x, y, string) c.drawString(0,0,str(dic)) c.save() If…