Ruby的gets和gets.chmop

gets后得到的内容在输出时后面接着换行,gets.chmop得到的内容输出时后面不带空格和换行。

posted on 2012-03-17 16:10  chateldon  阅读(1083)  评论(0编辑  收藏  举报

导航