你好,在python里要怎么才能使用sql语句?之前看到pymysql的设置,但是不是很理解。能解释一下吗?
# 本机连接 ---------------------------------------------------------------------
benji_connect = pymysql.connect(host='localhost', # 主机名或IP地址
user='root', # 用户名
password='xxx', # 密码
port=xxxx, # 端口
charset='utf8') # 编码