All Questions
7 questions
-4
votes
1
answer
60
views
How to store the generated txt file in the BinaryField
file = open("text1.txt", 'w')
file.write("Hello World")
file.close()
I have a binary field which is storetext
storetext= fields.Binary(string='Text File')
How can I store the txt file in storetext ...
0
votes
3
answers
2k
views
python read all files from a folder and write the file name and other info into a txt file
I have 30911 html files. I need to do webscraping and then save the info into a txt file named index.txt.
It should look like
filename1, title, t1, date, p1
filename2, title, t1, date, p1
filename3, ...
0
votes
2
answers
779
views
Python - Counting number of visits a user has made
I'm working on a program and I'm coming to the end of it and I've just implemented into my chatbot the ability for the bot to remember the users who have already spoken to them. Was easily done by ...
1
vote
1
answer
151
views
Python printing to an excel file
I am trying to make a quiz which then stores the score of the user in an excel file however when I do this it writes all the scores that the user got through out the 10 question quiz - it gives me the ...
0
votes
1
answer
77
views
python store function result to file
I got a function (see below) that gets data from Google analytics to my computer.
I would like to store the result in a csv file but I dont know how. please help me out.
I can print the result on ...
0
votes
2
answers
1k
views
get average from a file list
so previously I created a code that prompts the user to enter 5 different test scores and then to have that list saved to test.txt. the code works wonderful!
this is my code:
scorefile=open('test....
0
votes
4
answers
4k
views
Python: How to store user text input in a file?
I'm trying to prompt the user to enter a block of text until he/she types EOF on a separate line by itself. After that, the program should present him/her with a menu. When I go to Option 1, it only ...