From baf945ce40726680554987ccf68feecab3a12795 Mon Sep 17 00:00:00 2001 From: laixingyu Date: Tue, 15 Aug 2023 19:42:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E8=82=A1=E7=A5=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- importStocksData.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 importStocksData.py diff --git a/importStocksData.py b/importStocksData.py new file mode 100644 index 0000000..804542e --- /dev/null +++ b/importStocksData.py @@ -0,0 +1,8 @@ +import pandas as pd + +# 读取Excel文件 +excel_file = 'data.xlsx' +sheet_name = 'Sheet1' # 要读取的工作表名称 +df = pd.read_excel(excel_file, sheet_name=sheet_name) + +# 连接到SQLite数据库(如果不存在则会创建) \ No newline at end of file