2005年08月23日 星期二 16:33
i'm not doing things like len('tab+some characters') but thanks anyway ----- Original Message ----- From: "Wang Kebo" <mep_ at 163.com> To: <python-chinese at lists.python.cn> Sent: Tuesday, August 23, 2005 5:36 PM Subject: RE: [python-chinese] how to get the right byte length ofaunicodestring ? chenzh wrote: > thanks > to judge a unicode string's byte length, > len('mixedstring') works well :) > > i am working on a script to adjust c++ comment in ms-vs,with > tab:4,indent:4 option. > the weird thing misled me to ask the question is, i replaced all tabs > in a line before comment with 4 spaces, but when I copied the > replaced line back to vs,i found its length different from the > orginal line. > > still not figure it out. tab是一个字符,而空格是4个,是这个原因吗? __ Best Regards, Kebo Wang _______________________________________________ python-chinese list python-chinese at lists.python.cn http://python.cn/mailman/listinfo/python-chinese
Zeuux © 2025
京ICP备05028076号