Initial release
This commit is contained in:
17
dm.py
Normal file
17
dm.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import sys, json, locale
|
||||
reload(sys)
|
||||
sys.setdefaultencoding('UTF-8')
|
||||
sys.setdefaultencoding(locale.getpreferredencoding())
|
||||
#locale.setlocale(locale.LC_ALL, 'ru_RU.UTF-8')
|
||||
|
||||
table_list = open("tables.json", "r")
|
||||
data = json.load(table_list)
|
||||
|
||||
tDescr = data["tables"][0]["tableDescription"]
|
||||
tName = data["tables"][0]["tableName"]
|
||||
fList = data["tables"][0]["fList"]
|
||||
print(tName)
|
||||
print(tDescr)
|
||||
print(fList)
|
||||
|
Reference in New Issue
Block a user