print len( replace(replace(sheet1.Cells(1,1).value, chr(10), "-" ), chr(13), "#")) 输出: 7 字符串的实际长度为 10 。 编辑 我终于弄明白了。它与空格字符无关, ...
確定! 回上一頁