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参数, 只是语法上有所差异, 很接近的设计风格呢。。