python中\n的替代是什么?

Sul*_*ina -4 python newline end-of-line

我想在python中打印以下输出:

 99 buckets of bits on the bus.
 99 buckets of bits.
 Take one down, short it to ground.
 98 buckets of bits on the bus.
Run Code Online (Sandbox Code Playgroud)

使用单个打印命令,中间没有"\n"字符.如何才能做到这一点?

Chr*_*tin 5

使用三引号字符串文字,您可以使用实际换行而不是\n.

print(""" 99 buckets of bits on the bus.
 99 buckets of bits.
 Take one down, short it to ground.
 98 buckets of bits on the bus.""")
Run Code Online (Sandbox Code Playgroud)