mirror of
https://kkgithub.com/chinese-poetry/chinese-poetry.git
synced 2026-04-11 10:47:20 +00:00
Merge branch 'master' of https://github.com/chinese-poetry/chinese-poetry
This commit is contained in:
@@ -4,10 +4,11 @@ import json, sys
|
|||||||
import sqlite3
|
import sqlite3
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
|
try: # Python 2
|
||||||
reload(sys)
|
reload(sys)
|
||||||
sys.setdefaultencoding('utf-8')
|
sys.setdefaultencoding('utf-8')
|
||||||
|
except NameError: # Python 3
|
||||||
|
pass
|
||||||
|
|
||||||
c = sqlite3.connect('ci.db')
|
c = sqlite3.connect('ci.db')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user