Posts by Lorena Jesus • 15 points
6 posts
-
0
votes1
answer100
viewsA: Access data and change csv or txt with python
I got, added . replace("." ,'/',2). replace("." ,"",10) where is the number tells which column I want to change. So it was like this write.writelines(line.replace(' t',';'). strip()[:-2].…
-
0
votes1
answer100
viewsQ: Access data and change csv or txt with python
I have this script that does data negotiations, I took some examples from the internet but could not access the data, before recording in csv I need to modify some fields, for example, the field…
-
0
votes1
answer221
viewsA: Read csv with multiple lines in python
Sidon’s suggestion solved my problem. I created a new file .csv with another name and put for linha in data: print(linha), then it was with problem in the file, now it is checking line by line and…
pythonanswered Lorena Jesus 15 -
0
votes1
answer221
viewsQ: Read csv with multiple lines in python
Hello, I would like suggestions on how to read a csv file, I am maintaining a script, but it only returns the first line. I did some tests with some templates I found on the internet again only the…
pythonasked Lorena Jesus 15 -
0
votes1
answer647
viewsQ: python (Logging) daily log file
Hello, I would like to know how to create a log file for each day. Currently saved in a single file. log_file = path.join(path.dirname(path.realpath(__file__)),"Log.txt")…
pythonasked Lorena Jesus 15 -
1
votes1
answer48
viewsQ: Save log to application folder
Hello, I made an application and added log (logging), but it is saving in the root folder '/', and I want you to save in the root folder of the application Monitor/, how do I.…
pythonasked Lorena Jesus 15