[英]Printing form feed character in Python 3
According to this page running print "Hello\\fworld"
should give hello
and page
printed on different lines and with different indentations (something of a page break which is the purpose of the form feed character).根据这个页面运行
print "Hello\\fworld"
应该给出hello
和page
打印在不同的行和不同的缩进(换页符的目的是换页符的目的)。 However when I do print("Hello\\fworld")
in Python 3, what I get is the female sign: Hello♀world
, which is what I also get when I run print(u"Hello\♀world")
.但是,当我在 Python 3 中执行
print("Hello\\fworld")
时,我得到的是女性符号: Hello♀world
,这也是我在运行print(u"Hello\♀world")
。 How is that?那个怎么样?
Windows 控制台和 IDLE 或您使用的任何标准输出都不支持换页字符,因此您无法将它们打印到标准输出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.