显示一个异常。

函数签名[来源]

st.exception(exception)

参数

exception (Exception)

要显示的异常。

示例

import streamlit as st

e = RuntimeError("This is an exception of type RuntimeError")
st.exception(e)
forum

还有问题吗?

我们的 论坛 充满了有用的信息和Streamlit专家。