feat: Add Populate Scripts
This commit is contained in:
10
demo/populate_scripts/tools.py
Normal file
10
demo/populate_scripts/tools.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import csv
|
||||
|
||||
def open_file(file_path):
|
||||
content = []
|
||||
with open(file_path, mode='r', encoding='utf-8') as csvfile:
|
||||
data = csv.DictReader(csvfile)
|
||||
for row in data:
|
||||
content.append(row)
|
||||
|
||||
return content
|
||||
Reference in New Issue
Block a user