In the front-end and back-end interaction, Python + js
$.get() will console.log() the py file code that processes the data to the browser;
$.post() will not produce results and report an error: code 501, message Can only POST to CGI scripts;
Checked, the CGI script must be located in the cgi-bin folder
Source: https://stackoverflow.com/questions/5163118/why-wont-my-simple-cgi-server-handle-ajax-post-requests