Pythonic way of inserting lines to a file

后端 未结 2 1063
臣服心动
臣服心动 2021-01-21 19:48

So as the description describes, I would like to add text to a file in a sequential manner. Say, for example I have a file like this (NOT HTML, this is just an imaginary languag

2条回答
  •  醉话见心
    2021-01-21 20:17

    The most pythonic way for parsing markup is to use a suitable module to parse it.

提交回复
热议问题