Traceback (most recent call last):
File "/Users/tanya/miniconda3/lib/python3.7/http/server.py", line 1170, in run_cgi
os.execve(scriptfile, args, env)
OSError: [Errno 8] Exec format error: '/Users/tanya/Desktop/demo3/cgi-bin/hello_get.html'
----------------------------------------
127.0.0.1 - - [29/Jan/2020 11:40:46] CGI script exit status 0x7f00
原因是:默认情况下 cgi-bin 目录只能存放脚本文件,我们将 hello_get.html 存储在 test 目录下。