你把这个second的数据类型改成unsigned char second; 本身second最大计数直到60 定义成int太浪费空间你本身定的数据TAB[]是unsigned char 类型的 放进去int类型可能会报错 你试下
void debounce(void)最后要加分号;