How to you delete a specific line from a text file using readlines()
like:
f_open = open("textfile.txt", "r")
lines = f_open.readlines()
How do you use lines
to choose a line in textfile.txt
and delete it?
Sorry if it doesn't make sense.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…