美文网首页
在 jupyter 中渲染html

在 jupyter 中渲染html

作者: 田丰w | 来源:发表于2023-02-15 13:02 被阅读0次
    import requests
    from IPython.display import HTML
    
    # 渲染整个网页
    res=requests.get('https://jd.com')
    HTML(res.text)
    
    # 渲染 html 片段
    text = 'mark 元素用于<mark>高亮</mark>文本'
    HTML(text)
    

    参考:

    相关文章

      网友评论

          本文标题:在 jupyter 中渲染html

          本文链接:https://www.haomeiwen.com/subject/lxaykdtx.html