ruby中如何给变量赋值 Ruby中,你可以这样赋值,很神奇吧foo, bar = [1, 2] # foo = 1; bar = 2foo, bar = 1, 2 # foo = 1; bar = 2foo, bar = 1 # foo = 1; bar = nil给一个很好的列子>> name = "Joe Bloggs"=> "Joe Bloggs">> firstnam Other 2024-01-02 36 点赞 0 评论 54 浏览