def _SplitAndPad(s):
"""Splits a string on newlines, and pads the lines to be the same width."""
split_string = s.split('\n')
width = max(len(stringpiece) for stringpiece in split_string) + 1
padded_strings = [string.ljust(stringpiece, width, ' ')
for stringpiece in split_string]
return padded_strings
评论列表
文章目录