你可以使用 textwrap.wrap ,但要注意,它仍然把空格算作字符,所以 long string 的长度是11,而不是10。 import textwrap df.Name.apply(lambda x: textwrap.wrap(x, ...
確定! 回上一頁