我一直试图像在正常语句中添加新行一样这样做,但如果我这样做,它就不起作用。
cars = ["audi", "bmw", "toyota"]
print(\ncars)
Run Code Online (Sandbox Code Playgroud)
它显示此错误:
SyntaxError: unexpected character after line continuation character
Run Code Online (Sandbox Code Playgroud)
如何向打印列表中添加新行?顺便说一句,我是 python 和一般编程的初学者。