This is the Ruby
require 'cgi'
dcgi=CGI.new
dcgi["name"]==dcgi.params["name"][0]
This is the Python
import 'cgi'
form = cgi.FieldStorage()
form["name"].value But recommend use follow way: form.getvalue("user", "") #The second parameter is the default value if the value is not existent
form.getlist("user")
form.getfirst("user","")
都是用字典來存儲CGI參數, 只是語法上有所差異, 很接近的設計風格呢。。