与此问题有关:How to generate a content provider with GreenDao3?
有人可以举例说明如何在GreenDao3中为带注释的实体创建内容提供者吗? 例如,我的实体看起来像这样:
FILENAME = `yourfilename.csv`
items_names = []
items_GTIN_8 = []
items_prices = []
with open(FILENAME, 'r', ) as csvfile:
reader = csv.DictReader(csvfile, delimiter=', ')
for row in reader:
# Here for every row, the headers of your csv will be the keys
# of the row dict
items_GTIN_8.append(row['GTIN 8 NO'])
items_names.append(row['NAME'])
items_prices.append(row['PRICE'])
我从头到尾搜索了一段代码示例,但实际上它们都没有。