当我跑size,并length在一根绳子上,它们返回的值相同.
size
length
"akash".size # => 5 "akash".length # => 5
这两种方法有什么区别?
ruby string
ruby ×1
string ×1