from meutils.pipe import * from appzoo.streamlit_app import Page import streamlit as st from streamlit.components.v1 import html, iframe class MyPage(Page): def main(self): text = "" with open("./data/x.html") as fp: # 如果遇到decode错误,就加上合适的encoding text = fp.read() html(text) if __name__ == '__main__': MyPage().main()