在交互式Python提示符上,当我没有将表达式foo的输出绑定到名称时,Python会将builtins.repr(foo)的输出写入终端。298]: long_str = ''.join(random.choice(string.ascii_letters) for _ in range(1000))
In [299]: print(reprLcOKLSfEifohPxWIPZEbwLSTlXTLIeJNxBfTpfyjtpnetKHPoEqwgtcsSRGupdzTidaGoekQOrlRedOchiIFzVLlXxlRNJVCIl