注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 匿名 于 2026-5-11 21:55 编辑
求大米!Print Sentences as Table
Given a list of sentences and a fixed width (55), print each sentence as a row in a bordered table. Each sentence stays on ONE line, padded t---------------+
Edge cases to clarify:
- Sentence longer than width? (truncate? error?)
- Empty sentence?
- Empty list?
|