少しずつでもrubyの勉強をしていこうと思います。
まずは定番の出力系コマンドから。
スクリプト
--------------------------------------------------
puts "hello"
print "hello"
print "hello\n"
print("hello\n")
p "hello"
--------------------------------------------------
実行結果
--------------------------------------------------
hello
hellohello
hello
"hello"
--------------------------------------------------
よし、頑張った。
0 件のコメント:
コメントを投稿