当遇到一些不影响程序运行的警告的时候,为了好看或者不想看到警告,可以采用warnings模块忽略warning。
import warningswarnings.filterwarnings("ignore")