strchr(s,',') if(!strcmp(s,"()")) break; 参考 https://blog.csdn.net/Dilly__dally/article/details/82261077