您可以在f 字符串中使用表达式将字符串的长度限制为给定的字符数。 主程序. my_str = 'bobbyhadz' # ✓ limit string length to 5 characters ...
確定! 回上一頁