我想在 Python 中的 < li > 標簽之前附加 '\n' 。我曾使用 replace(' ', '\n') 但不行。你能幫助我嗎?我的代碼:<li>Product ID: 123</li><li>Material: 100%</li><li>Test: string test </li>我的愿望:\n<li>Product ID: 123</li>\n<li>Material: 100%</li>\n<li>Test: string test </li>
如何在 Python 中將 '\n' 附加到 '<li>' 標簽之前
慕的地6264312
2021-11-23 16:38:44
