如何在Python3列表中换行? \ n在这种情况下不起作用。
**areas = ["hallway", 11.25, "kitchen", 18.0, "living room", 20.0, "bedroom", 10.75, "bathroom", 9.50]
downstairs = areas[:6]
upstairs = areas[6:]
print(downstairs \n upstairs)**
它返回:
**File "<stdin>", line 9
print(downstairs \n upstairs)
^
SyntaxError:换行符后出现意外字符**
PS:这是我在这里的第一个问题:)