data-manipulation/dm.py

18 lines
427 B
Python
Raw Normal View History

2017-03-12 15:02:21 +03:00
# -*- 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)