我創(chuàng)建了一個hello.rb文件,里面只有一個輸出語句,保證沒錯。然后命令行輸入ruby hello.rb之后提示:NameError:undefined local variable or method ‘hello’ for main:Objectfrom <irb>:1from C:/Ruby200/bin/irb:12:in '<main>'Ruby初學(xué)者,求大神指點(diǎn)為什么會這樣……
- 1 回答
- 0 關(guān)注
- 1186 瀏覽
添加回答
舉報
0/150
提交
取消