sscanf格式化输出时间:2023-03-08 16:56:16char DesChar[20] = {0}; char* SouChar= "1cZCD23456abEFdedfB"; sscanf(SouChar,"%[^A-Z]",DesChar); 可用于查找和截取字符串