A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

1、JSON

import json

def json_basic():

data={

‘’ID’’:1

’’课程‘’:‘’python精讲‘’,

‘’机构‘’:‘’优品课堂‘’,

’‘单价’‘:98.00

’‘网址’‘:’‘http://cord.cn’’

}

print(‘原始数据’)外汇代理http://www.fx61.com/ib.html

print(data)

print(‘-‘*20)

json_str=json.dumps(data)

print(json_str)

print(‘-‘*20)

json_data=json.loads(json_str)

print(json_data)

def json_writer_file():

def json_read_file():

def json_type.diff():

if__name__=‘__main__’:

json.basic()

2、excel

import xlrd

def xl_read():

‘’’’’’excel读取’’’’’’

book=sled.open_workbook(‘product.xls’)

for sheet in book.sheets():

print(sheet.name)

def xl_read_data():

if __name__=‘__main__’:

xl_read_data()

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马