str = "runoob" print(len(str)) 执行以上代码输出结果为: 6 实例2:使用循环计算def findLen(str): counter = 0 while str[counter:]: counter += 1 ...
確定! 回上一頁