parser.add_argument('--save-txt', action='store_true', help='save results to *.txt') 将其添加default='True'