Posts by Victor Marcelino • 126 points
2 posts
-
1
votes1
answer83
viewsA: How to load only one line and modify it
Using the following it is possible to read the file by lines. As soon as a line is read, the old one is discarded by Garbage Collector: import os with open('arquivo.txt', 'r+') as f: for linha in f:…
-
0
votes1
answer979
viewsA: How to manipulate html forms in python
Welcome to Stack Overflow! When the variables name and password go through the print, they are printed correctly? If yes, the problem is probably in the open in its encoding. Take a look at this…