0

I need to incorporate a table into my python program so when I run my program it can read the information from the table as it is needed. What is the best way to incorporate the table into my program so that it is familiar with it when the program is ran?

This is the table that I will incorporate into my program:

enter image description here

4

1 回答 1

2

您可以使用 Excel 或 Google 表格。

  1. 将表格粘贴到电子表格中
  2. 将工作表导出为 CSV
  3. 使用 Python 的csv库导入数据

https://docs.python.org/3/library/csv.html

于 2016-04-20T23:09:16.793 回答