python - 如何在 Colab 中打印新行?
问题描述
我正在使用 google colab 并想将一个句子分成两行。我试过 \n 和 \r,但它们不起作用。
test = "This is the first line. \r\n This is the second line"
test
这是代码的链接
https://colab.research.google.com/drive/11FhjbT2VvCepdFKSCTVQjYtQfnSxsrTH?usp=sharing
解决方案
TYZ给了我答案。print(test) 而不仅仅是测试。
推荐阅读
- tomcat - Jboss vs tomcat(清除java ee支持的阴影)
- java - 用 Java 中的用户输入和空格编码这个金字塔模式?
- angular - Mat Table 中的嵌套反应表单找不到控件
- vector - 包装 C++ 向量时消除 Python 开销
- asp.net - IIS URL 重写规则不适用于整个站点
- single-sign-on - 可以同时对反向代理后面的多个应用程序进行身份验证吗?
- amazon-web-services - Aws 数据管道触发 aws 胶水爬虫
- php - 如何在 Prestashop 1.7 上删除送货运输步骤
- laravel - Laravel ffmpeg 编码未能转换
- r - 反向地理编码的问题