有-W选项。 python -W ignore foo.py 所属网站分类: python基础 > 综合&其它 作者:jiem 链接:http://www.pythonheidong.com/blog/article/456/ 来源:python黑洞网