I'm used to doing print >>f, "hi there"
(我习惯于print >>f, "hi there"
)
However, it seems that print >>
is getting deprecated.
(但是,似乎print >>
已被弃用。)
What is the recommended way to do the line above? (推荐使用哪种方法进行上述操作?)
Update) : Regarding all those answers with "\n"
...is this universal or Unix-specific?
(更新) :关于所有带有"\n"
答案...这是通用的还是Unix专用的?)
IE, should I be doing "\r\n"
on Windows? (IE,我应该在Windows上执行"\r\n"
吗?)
ask by Yaroslav Bulatov translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…