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