How to print something without a new line in ruby

前端 未结 3 1081
南笙
南笙 2021-02-04 23:07

puts statement in ruby automatically adds a new line, how do I avoid it?

3条回答
  •  长发绾君心
    2021-02-04 23:38

    Also, you'll need to append "\r" at end of line to indicate "carriage return" and do next print at beginning of current line

提交回复
热议问题