摘要: def tab2space(s, ts=4): out = ''; i = 0 for c in s: if c == '\t': j = ((i + ts) // ts) * ts out += (j - i) * ' ' i = j else: out += c; i += 1 return o 阅读全文
posted @ 2021-12-31 11:26 华容道专家 阅读(284) 评论(0) 推荐(0)