Clean code; Refactor environment to pass screenshot content instead of path

This commit is contained in:
Timothyxxx
2024-04-13 23:34:01 +08:00
parent b9ae9b72b2
commit 9c75df5dce
10 changed files with 144 additions and 213 deletions

View File

@@ -1,5 +1,6 @@
import csv
# I want to write a function, reads a csv file, and get all the contents in the third column in the order of rows
def get_conference_city_in_order(env, config):
# read the csv file
@@ -12,4 +13,3 @@ def get_conference_city_in_order(env, config):
# get the third column in the order of rows
conference_city_list = [row[2] for row in reader]
return conference_city_list