Json:
use_time=[]
with open(address,'r') as f: #ubuntu
mobile = json.load(f)
calls = mobile["transactions"][0]["calls"]
for call in calls:
use_time.append(str(call['use_time']))
Excel:
rawdata1=open_workbook(address)
rawdata=rawdata1.sheet_by_index(0)
for i in range(1,rawdata.nrows):
if rawdata.cell(i,date_index).value=="": #跳过空行
continue
else:
if ctype==3: