站点:http://bottlepy.org/


from bottle import route, run @route('/hello') def hello(): return "Hello World,PHPer.yang Python bottle" run(host='74.82.175.214', port=8080, debug=True) |
执行python t.py

因为没有定义,定义了hello

Ruby sinatra
http://www.sinatrarb.com/
gem install sinatra


require 'sinatra' get '/hi' do "Hello World! PHPer.yang Ruby sinatra" end |
ruby -rubygems hi.rb
