默认为false 直接运行python a.py,输出结果False 运行python a.py --v,输出结果True 也就是说,action='store_true',只要运行时该变量有传参就将该变量设为True。