Commit b6d109450764c274ad3ff0028a15383c651369d1

Authored by liujiqiang
1 parent ce9ae390

创建进门单

Showing 1 changed file with 1 additions and 30 deletions
testcase/test_ZC/demo.py
... ... @@ -7,33 +7,4 @@
7 7  
8 8 """
9 9  
10   -"""
11   -
12   -import json
13   -import datetime,time
14   -import urllib
15   -
16   -# print(time.localtime())
17   -import urllib3
18   -
19   -# print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
20   -
21   -# a = {"aa":"阿三大苏打","bb":"bb","cc":{"cc1":"啊实打","cc2":"ad"}}
22   -# print(a)
23   -# data = {"cc":{"cc1":"2"}}
24   -# b = dict(a,**data)
25   -# print(b)
26   -
27   -# def doDcit(**kwargs):
28   -# a = {"aa": "阿三大苏打", "bb": "bb", "cc": {"cc1": "啊实打","cc2":"ad"}}
29   -# print(a)
30   -# b = dict(a,**kwargs)
31   -# print(b)
32   -
33   -a = {"code":"200","data":[{"autoPass":2,"autoSave":1,"carTypeName":"板车","code":"003","id":53,"number":"0007","remark":"","status":1,"tag":"jmsf","weight":333},{"autoPass":1,"autoSave":1,"carTypeName":"挂车","code":"gc","id":59,"number":"0030","remark":"","status":1,"tag":"jmsf","weight":1},{"autoPass":2,"carTypeName":"柜车","code":"23","id":60,"number":"0031","remark":"","status":1,"tag":"jmsf","weight":0},{"autoPass":1,"autoSave":1,"carTypeName":"地排车","code":"008","id":87,"number":"0001","remark":"","status":1,"tag":"jmsf","weight":2},{"autoPass":2,"autoSave":1,"carTypeName":"玉玺","code":"888","id":128,"number":"0042","remark":"","status":1,"tag":"jmsf","weight":0},{"autoPass":2,"carTypeName":"军车","code":"555","id":61,"number":"0013","remark":"","status":1,"tag":"jmsf","weight":0},{"autoPass":2,"carTypeName":"小面包","code":"","id":142,"number":"0008","remark":"","status":1,"tag":"jmsf","weight":22},{"autoPass":1,"autoSave":1,"carTypeName":"小轿车","code":"001","id":51,"number":"0002","remark":"","status":1,"tag":"jmsf","weight":0},{"autoPass":2,"carTypeName":"123456789012345","code":"1245","id":160,"number":"0044","remark":"","status":1,"tag":"jmsf","weight":11},{"autoPass":2,"carTypeName":"111111111222222","code":"6432","id":161,"number":"0045","remark":"","status":1,"tag":"jmsf","weight":22},{"autoPass":2,"autoSave":1,"carTypeName":"test0731","code":"12345","id":162,"number":"0047","remark":"asdf g hgsaf","status":1,"tag":"jmsf","weight":11}],"message":"OK","result":"OK","success":True}
34   -print(a["data"])
35   -# lambda file_name: os.path.getmtime(report_path + file_name)
36   -b = a["data"].index([i for i in a["data"] if i["carTypeName"]=="地排车"][0])
37   -print(b)
38   -# c ="2" if b !=None else "1"
39   -# print(c)
40 10 \ No newline at end of file
  11 +"""
41 12 \ No newline at end of file
... ...