擅长:python、mysql、java
<p>您可以使用此stacktrace实现您想要做的事情:</p>
<p><strong>1。</strong>您可能可以通过<a href="https://stackoverflow.com/a/58763434/7573706">this</a>方法将类的数据提取为字典</p>
<p><strong>2.</strong>用<a href="https://www.w3schools.com/python/python_file_write.asp" rel="nofollow noreferrer">this</a>将其写入文件</p>
<p><strong>3.</strong>从那里将其加载到字典到toml转换器中,其中<code>toml.dump</code>包含更多信息<a href="https://pypi.org/project/toml/" rel="nofollow noreferrer">here</a></p>