擅长:python、mysql、java
<p>我认为您可以对文件使用seek()并在json文件的相关位置进行写入。例如,您需要更新firstname,在firstname之后查找:并更新那里的文本。
这里有一些例子:
<a href="https://www.tutorialspoint.com/python/file_seek.htm" rel="nofollow noreferrer">https://www.tutorialspoint.com/python/file_seek.htm</a></p>