跑一个老脚本,以前PY3.7一直没问题,换了新办公电脑,下载了PY3.8并install了相关库,重新跑同样的脚本开始报这个warning。搜到了解决办法。
how-to-deal-with-warning-workbook-contains-no-default-style-apply-openpyxls
#解决warning: UserWarning: Workbook contains no default style, apply openpyxl's default
import warnings
warnings.simplefilter('ignore')