1 Star 0 Fork 0

sniper15 / BullshitGenerator

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
readJSON.py 419 Bytes
Copy Edit Web IDE Raw Blame History
jingyuexing authored 2019-11-01 18:49 . 读取JSON库
# -*- coding: utf-8 -*-
# @Author: Admin
# @Date: 2019-11-01 16:52:34
# @Last Modified by: Admin
# @Last Modified time: 2019-11-01 18:18:14
def 读JSON文件(fileName=""):
import json
if fileName!='':
strList = fileName.split(".")
if strList[len(strList)-1].lower() == "json":
with open(fileName,mode='r',encoding="utf-8") as file:
return json.loads(file.read())

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/sniper15/BullshitGenerator.git
git@gitee.com:sniper15/BullshitGenerator.git
sniper15
BullshitGenerator
BullshitGenerator
master

Search