
python3使用cgi:
1.CGI是通用网关接口,是一段程序运行在服务器上。2.mac中打开自带的apache:sudo apachectl start3. 配置httpd.conf支持cgi模块a.开启cgi模块,前去‘#’开启LoadModule cgi_module modules/mod_cgi.sob.添加cgi路径,牵扯到ScriptAlias 和Directory,修改如下:ScriptAlias /cgi-bin/ (...your file address/cgi-bin)&




