最近在pycharm中,完好的代码部分突然出现了报错信息!!!由于是后台某些库函数模块进行了更新导致的。
# 报错信息
# UserWarning: SymbolDatabase.GetPrototype() is deprecated. Please use message_factory.GetMessageClass() instead.
# SymbolDatabase.GetPrototype() will be removed soon.
# warnings.warn('SymbolDatabase.GetPrototype() is deprecated. Please '
只要在系统程序中抛出这个警告就好了!!!
加入下面代码块:
import warnings
warnings.filterwarnings("ignore")
1335

被折叠的 条评论
为什么被折叠?



