Ruby 鏁欑▼

python-mini

Ruby 鏄竴绉嶅紑婧愮殑闈㈠悜瀵硅薄绋嬪簭璁捐鐨勬湇鍔″櫒绔剼鏈瑷锛屽湪 20 涓栫邯 90 骞翠唬涓湡鐢辨棩鏈殑鏉炬湰琛屽紭锛堛伨銇ゃ倐銇ㄣ倖銇嶃伈銈/Yukihiro Matsumoto锛夎璁″苟寮鍙戙傚湪 Ruby 绀惧尯锛屾澗鏈篃琚О涓洪┈鑼紙Matz锛夈安徽快三和值走势图—官方网址22270.COMRuby 鍙繍琛屼簬澶氱骞冲彴锛屽 Windows銆丮AC OS 鍜 UNIX 鐨勫悇绉嶇増鏈

瀛︿範鏈暀绋嬶紝鎮ㄥ皢瀵 Ruby 鏈変竴涓叏闈㈢殑浜嗚В銆

鐜板湪寮濮嬪涔 Ruby锛

璋侀傚悎闃呰鏈暀绋嬶紵

鏈暀绋嬫湁鍔╀簬鍒濆鑰呯悊瑙 Ruby 璇█鍩虹鐭ヨ瘑鍙婂熀鏈蹇点

闃呰鏈暀绋嬪墠锛屾偍闇瑕佷簡瑙g殑鐭ヨ瘑锛

鍦ㄦ偍寮濮嬬粌涔犳湰鏁欑▼涓彁渚涚殑鍚勭瀹炰緥涔嬪墠锛屾渶濂藉凡缁忓璁$畻鏈虹▼搴忓拰璁$畻鏈虹▼搴忚璁¤瑷鏈変竴涓熀鏈殑璁よ瘑锛岃繖灏嗘湁鍔╀簬鎮ㄥ鏈暀绋嬬殑瀛︿範銆

缂栬瘧/鎵ц Ruby 绋嬪簭

瀵逛簬澶у鏁扮紪绋嬭瑷锛岀涓涓叆闂ㄥ疄渚嬩究鏄 "Hello World!"锛屼笅闈㈢殑瀹炰緥浣跨敤 Ruby 杈撳嚭 "Hello World!"锛

瀹炰緥

#!/usr/bin/ruby puts "Hello World!";

杩愯瀹炰緥 禄

鐐瑰嚮"杩愯瀹炰緥"鎸夐挳鏌ョ湅鍦ㄧ嚎瀹炰緥杩愯缁撴灉銆

鎴栬呮槸鍦╥rb浜や簰寮忓懡浠よ鐨勬ā寮忎笅锛

>>puts "Hello, world!"
Hello, world!
=> nil