python-cgi

input the following command:

wgz@wgz:/tmp/test$ python3 -m http.server --bind localhost --cgi

file cgi.html

Username

file cgi_test.py

#! /usr/bin/env python3

print('Content-type: text/html\n')

print('hello world')

你可能感兴趣的:(python-cgi)