提问人:Hasini 提问时间:11/14/2023 最后编辑:James ZHasini 更新时间:11/14/2023 访问量:28
Spyder 遇到内部问题。哪些步骤将重现该问题?
Spyder has encountered an internal problem. What steps will reproduce the problem?
问:
我的代码没有错误,我在另一台计算机上尝试了相同的代码(它在那里工作),但在我的电脑中没有运行。以下是我的代码的一部分:
import pandas as pd
import mysql.connector
conn= mysql.connector. connect(host="localhost", password='K#1703@sparks',user="root", database = "Buttercup_brew_cafe")
cur=conn. cursor()
sql = ("SELECT if null (max(Q Code)+1,1) FROM Bill;")
cur. execute( sql )
results = cur.fetchall()
for row in results:
QCode=row[0]
错误。
我还下载了 mysql 与 python 连接所需的所有软件包,例如、、等(使用 pip)。
谁能帮忙? mysql-connector-python
mysql-connector
pandas
numpy
答: 暂无答案
评论
full details