This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import pandas as pd
# 读取Excel文件
excel_file = 'data.xlsx'
sheet_name = 'Sheet1' # 要读取的工作表名称
df = pd.read_excel(excel_file, sheet_name=sheet_name)
# 连接到SQLite数据库(如果不存在则会创建)