summaryrefslogtreecommitdiff
path: root/common/read_data.py
diff options
context:
space:
mode:
authorzhaokun <[email protected]>2023-11-08 13:44:25 +0800
committerzhaokun <[email protected]>2023-11-08 13:44:25 +0800
commit4e683d5703daf29810097b9961b5ce02420202ea (patch)
tree4ad01d46a7417a14a8c8a9045e95d0387cf24388 /common/read_data.py
parent44ed57c3f0b5f83e2836aadeea34003f08867b08 (diff)
updatemain
Diffstat (limited to 'common/read_data.py')
-rw-r--r--common/read_data.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/common/read_data.py b/common/read_data.py
new file mode 100644
index 00000000..69d6478c
--- /dev/null
+++ b/common/read_data.py
@@ -0,0 +1,16 @@
+import json
+
+class ReadData:
+ def __init__(self):
+ print(__file__)
+
+ @property
+ def read_from_json(self):
+ with open("C:/zcw/aoto_selenium/testdata/demo1_data.json", "r") as f:
+ data = json.load(f)["item"]
+ data = list(data)
+ return data
+
+
+if __name__ == '__main__':
+ ReadData().read_from_json \ No newline at end of file