📅  最后修改于: 2022-03-11 15:04:45.384000             🧑  作者: Mango
代码示例1
"string\r\n".chop #=> "string"
"string\n\r".chop #=> "string\n"
"string\n".chop #=> "string"
"string".chop #=> "strin"
"x".chop.chop #=> ""