python file: Not able to write in 'r+' mode

前端 未结 0 910
没有蜡笔的小新
没有蜡笔的小新 2021-01-20 08:32

I am trying to remove a number of letters (depending on the input) from the end of a text from a file and then storing it in the same file:

f = open("fil         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题