Ruby的gets和gets.chmop

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

原文地址:https://www.cnblogs.com/chateldon/p/2403312.html