diff options
author | chai <chaifix@163.com> | 2018-01-24 20:04:34 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-01-24 20:04:34 +0800 |
commit | 6562ad5da1548247e50c2b592332c9f56afda072 (patch) | |
tree | 9b8adbf557d0d7126ca16aee29d1c603e1705e14 /cgi-bin/issue.py | |
parent | 131cf12827e64f527da69251b6a6221d130c1cc7 (diff) |
*修改
Diffstat (limited to 'cgi-bin/issue.py')
-rw-r--r-- | cgi-bin/issue.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cgi-bin/issue.py b/cgi-bin/issue.py new file mode 100644 index 0000000..84d84a7 --- /dev/null +++ b/cgi-bin/issue.py @@ -0,0 +1,16 @@ +#!C:\Python364\python3.exe +# -*- coding: utf-8 -*- +import sys, codecs +import cgi, cgitb +import pymysql +import issuedb +from issuedb import IssueDBFactory +sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) + +db = IssueDBFactory.produce() +cursor = db.cursor() + +issue_html_file = open("issue.html", 'r', encoding='utf8') + + +print("Content-type:text/html\n") |