emmmmm strlen是从前向后遍历字符串 遇到'/0'结束 有两个问题 1.strlen从下标0开始,你从1开始赋值就要写strlen(s+1) 2.自己赋值的字符串没有结束符'/0'不会结束 by YCS_GG @ 2018-07-13 14:29:21