What is the logic behind this result?

后端 未结 0 1101
醉话见心
醉话见心 2021-02-12 06:32
def foo(_, _=\'override\')
  _
end

p foo(\"bye bye\")
p foo(\"hello\", \"world\")

Output:

\"override\"
\"hello\"

I c

相关标签:
回答
  • 消灭零回复
提交回复
热议问题