开发一个系统,包括通过python在电报上发布文章。一般来说,一切都正常。但最近我在不同的浏览器中发现了奇怪的行为和标签。在移动版的电报上,它能像预期的那样工作,而在其他地方,它却不起作用。除了硬编码行数之外,有没有其他解决方案?您可以自己在这里查看https://telegra.ph/Arthur-Conan-Doyle-Estudio-en-Escarlata-1-09-06 (自2021年10月5日起活动)。我使用的代码如下:
def update_page(path, title, content, author):
response = telegraph.edit_page(path, html_content = content, title = title,
author_name = author, return_content=True)
current_path = 'http://telegra.ph/{}'.format(path)
return current_path
html = '''
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
'''
title = 'Testing lists'
update_page(test_path, title, html, AUTHOR)发布于 2021-10-05 18:36:16
试着把清单上的项目写成一行,比如123。这为我解决了问题。
https://stackoverflow.com/questions/69454816
复制相似问题