mestreamlit / pages /1000_文本标识.py
yuanjie
update
e891f47
raw
history blame
777 Bytes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : Python.
# @File : 8000_文本标识
# @Time : 2022/10/17 下午1:39
# @Author : yuanjie
# @WeChat : meutils
# @Software : PyCharm
# @Description :
import streamlit as st
from annotated_text import annotated_text, annotation
annotated_text(
"我 ",
("热爱", "", "#8ef"),
" 我们 ",
("非常棒", "", "#faa"),
("而", "", "#afa"),
" 有用的 ",
("Streamlit", "", "#fea"),
("社区", "", "#8ef"),
("!", "", "#afa"),
)
annotated_text(
"I ",
("Love", "", "#8ef"),
" our ",
("Great", "", "#faa"),
("and", "", "#afa"),
" Useful ",
("Streamlit", "", "#fea"),
("Community", "", "#8ef"),
("!", "", "#afa"),
)