Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : Ruby

ÏëÕÒÒ»·ÝRuby on railsµÄ¹¤×÷,ÎÒÓ¦¸ÃÖªµÀÄÄЩ֪ʶ?

ÐÂÄê¸Õ¿ªÊ¼,ÒѾ­ÓÐһЩÉúÃ͵ÄÅóÓÑÒª¿ªÊ¼ÐµÄÖ°³¡ÉúÑÄÁË,
²»ÖªµÀ»á²»»áÓöµ½ÕâÑùµÄÎÊÌâ: ÏëÕÒÒ»·ÝRuby on railsµÄ¹¤×÷,ÎÒÓ¦¸ÃÖªµÀÄÄЩ֪ʶ ?
    »¹ºÃ,ÎÒ²¢²»ÊÇÏëÖ¸µãÄãʲô,Ö»ÊÇÏë°´ÎÒµÄ˼ά·½Ê½Õ¹¿ª,ÈÃÄãÄÜ"ÎÅ"µ½µã¶«Î÷¼´³É.
¹ÅÔÆ:Öª¼ºÖª±Ë£¬°ÙÕ½²»´ù£»²»Öª±Ë¶øÖª¼º£¬Ò»Ê¤Ò»¸º£»²»Öª±Ë£¬²»Ö ......

rubyϵͳÃüÁîÎÊÌâ

ÎÒÔÚruby on railsÉÏÖ´ÐÐϵͳÃüÁµ«ÊǸÃϵͳÃüÁÔÚÎÒĬÈϵÄ·¾¶ÉÏÖ´Ðеģ¬¼´/var/www/my¡£ÏÖÔÚÎÒÓÃrubyÓïÑÔ±à³Ì£¬¿É´´½¨ÁËÒ»¸öÐÂĿ¼aaa£¨system "mkdir aaa"¼´¿É£©£¬µ«ÊÇÎÒ²»ÄܽøÈëaaaĿ¼Ï½øÐвÙ×÷£¬±ÈÈç´´½¨Îļþtest.html¡£ÇëÎʸ÷λ¸ßÊÖ£¬ÎÒÓÃrubyÓï¾äÔõÑù½øÈëÎÒµÄaaaĿ¼¡£ÁíÍâËùÓеÄsystem¶¼Ö»ÄÜ·µ»Øtr ......

ruby²Ù×÷Îļþ

require 'app/configuration'
module RubyAMF
  module Configuration
    #set the service path used in all requests
    # RubyAMF::App::RequestStore.service_path = File.expand_path(RAILS_ROOT) + '/app/controllers'

    # => CLASS M ......

×Éѯһ¸öÒì³£³õ¼¶µÄÎÊÌ⣬¹ØÓÚrubyµÄI/O

¸Õ¿ªÊ¼¿´ruby
ÓõÄÊÇ1.8.7°æ±¾£¬±àÒëÆ÷SciTE£¬²Ù×÷ϵͳwin7
ÓÃgets·½·¨£¬°üÀ¨gets.chomp¶¼Ã»·¨ÊäÈ룬»áµ¯³öÒ»¸ö¿ØÖÆ̨½çÃ棬µ«µã»÷¼üÅÌûÓÐÈκη´Ó¦£¬Èç¹ûÔÚÊäÈëÃüÁî֮ǰÓÐÊä³ö£¬Ò²²»»áÏÔʾÔÚ¿ØÖÆ̨ÉÏ£¬¶øÊǹرտØÖÆ̨֮ºó»áÔÚÓÒ±ßÐÅÏ¢¿òÏÔʾ¡£
ÇóÖúÏà¹ØÔ­Òò£¬Íû´ó¼Ò²»Áߴͽ̣¬²»Éõ¸Ð¼¤¡£
Ŷ£¬ÍüÁË˵
getcÃüÁî ......

ÇëÎÊÓÐûÓÐÈËѧϰRubyÓïÑÔ£¿

ÇëÎÊÓÐûÓÐÈËѧϰRubyÓïÑÔ£¿
Õâ¸öÎÊÌâÓÐʲôÒâÒ壿



¿Ï¶¨ÓÐ

¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£ºÇºÇ
Õâ¸ö¿ÉÒÔÓÐ

žžµØ£¬
¡£¡£¡£Óл¹ÊÇûÓУ¿

ÒýÓÃ
Õâ¸öÎÊÌâÓÐʲôÒâÒ壿
É¢·ÖµÄÒâÒåµÄÓУ¡

¹þ¹þ£¬ÓÐÈËÀ´Ìß°æÀ²~ :-]

LZÊÇÀ´·¢²ÆµÄÂð£¬Íü¼Ç´øÎäÆ÷ÁË¡£¡£¡£

ruby¿ÉÒÔÈ¥javaeye°¡£¬ÄÇÀï±È½Ï¶à

Ϊʲô ......

rubyÖеÄorµ½µ×ÊÇʲôÒâ˼£¿

Python code:
puts true or false
puts false or true
ΪʲôÉÏÃæµÄÊä³ötrue£¬ÏÂÃæµÄÊä³öfalse£¿ÄѵÀÖ»ÈÏorÇ°ÃæµÄ£¿

¾Ý˵orºóÃæÊÇÖ±½ÓÊ¡ÂԵģ¬²»ÖªµÀÊDz»ÊÇÕâÑù¡£
Â¥ÉϵĴ𰸺ÃÏñ²»ÊÇÎÒÏëÒªµÄ

rubyÉçÇøÔõôÕâôÀäÇå°¡ °¥

ÀäÇåËùÒÔֵǮ¡£¡£¡£

¹Ø×¢ÖÐ zy2419
......
×ܼǼÊý:25; ×ÜÒ³Êý:5; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [1] 2 [3] [4] [5]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ