How can I delete the last word written in the text file

后端 未结 0 811
醉酒成梦
醉酒成梦 2021-01-03 01:10

If I press Enter in text input I want to delete this enter line and not the whole text.

In this code will erase everything in txt file.

def line_delete         


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