Python CGI编程

基础教程:https://www.runoob.com/python/python-cgi.html

补充教程:https://www.cnblogs.com/xuey/p/11857975.html

@笔记:Python3.x CGI 中文乱码解决

import codecs, sys 
sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer)

@笔记:Python文件首行,要正确标明Python运行程序位置

#!C:\Users\Administrator\AppData\Local\Programs\Python\Python37\python.exe
posted @ 2020-04-11 18:46  大漠孤烟~  阅读(201)  评论(0编辑  收藏  举报