为什么print语句不能打印NEW LINE(\ n) [英] Why is print statement not printing NEW LINE (\n)

查看:88
本文介绍了为什么print语句不能打印NEW LINE(\ n)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行以下.cgi脚本时,即使在输入\ n之后,也不确定为什么每个print语句都不在新行上打印。浏览器= IE6


请参阅下面的Perl代码:

When I running the following .cgi script, not sure why each print statement is not printing on a new line, even after entering \n. Browser=IE6

See Perl code below:

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号

推荐答案

它在源代码中,但是html没有换行符的概念,你必须使用html代码来格式化html页面。
it is in the source code, but html has no concept of a newline, you have to use html code to format html pages.



当我运行以下.cgi脚本时,即使在输入\ n之后,也不确定为什么每个print语句都不在新行上打印。浏览器= IE6


请参阅下面的Perl代码:

When I running the following .cgi script, not sure why each print statement is not printing on a new line, even after entering \n. Browser=IE6

See Perl code below:

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


他正在浏览器中查看输出。他需要使用HTML代码来格式化输出。
He''s viewing the output in a browser. He needs to use HTML code to format the output.


这篇关于为什么print语句不能打印NEW LINE(\ n)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆