CGI関係の個人的なメモ書き(python3)
個人的なメモ書きです。
python3系のお話
CGIHTTPServerを建てる。
cgiserver.py
import http.server
http.server.test(HandlerClass=http.server.CGIHTTPRequestHandler)
これで http://localhost:8000 に繋げばcgiserver.pyを走らせているディレクトリのindex.htmlが表示される。
個人的なメモ書きです。
python3系のお話
cgiserver.py
import http.server
http.server.test(HandlerClass=http.server.CGIHTTPRequestHandler)
これで http://localhost:8000 に繋げばcgiserver.pyを走らせているディレクトリのindex.htmlが表示される。