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

前端 未结 0 1106
情歌与酒
情歌与酒 2021-01-20 09:04

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         


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