20 lines
538 B
Python
20 lines
538 B
Python
"""모든 DataTable 나열"""
|
|
import json
|
|
|
|
with open('../../원본데이터/DataTable.json', 'r', encoding='utf-8') as f:
|
|
data = json.load(f)
|
|
|
|
assets = data.get('Assets', [])
|
|
print(f"총 Assets: {len(assets)}\n")
|
|
|
|
# DataTable만 필터링
|
|
datatables = [a for a in assets if a.get('Type') == 'DataTable']
|
|
print(f"DataTable 개수: {len(datatables)}\n")
|
|
|
|
# 이름 출력
|
|
print("DataTable 목록:")
|
|
for dt in datatables:
|
|
name = dt.get('Name', '')
|
|
rows_count = len(dt.get('Rows', {}))
|
|
print(f" - {name} ({rows_count} rows)")
|