[英]python: How do you print to a new line
I am trying to print to a new line in python.我正在尝试在 python 中打印到一个新行。
I tried:我试过:
print text '\n', sentiment '\n', score
But it doesn't work.但它不起作用。
您必须将\\n
连接到文本:
print text + '\n', sentiment + '\n', score
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.