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