和你写的一模一样,但是报错了,
list index out of range
请问如何把common-io的文档生成为docset呢
SELECT
last_name employees,salary monthly salary
from employees
where salary between 5000 and 12000
and
department_id in(20,50);
老师我这个运行不出来
select last_name department_id,salary from employees order by department_id asc,salary desc;老师我的代码运行和视频不一样,就是last name这个
select last_name department_id,salary from employees order by department_id asc,salary desc;
strip只能直接用于字符串么?为什么字符串赋值给a之后无效了
这个是为啥啊 我这个地方数据库配置文件直接copy的老师的
为什么输出会空行
这个跟着视频敲的代码但是报404异常是怎么回事?
已解决,'passwd':'rooot'多了一个o,if __name__=='__mian__':
'passwd'
:
'rooot'多了一个o,if __name__=='__mian__':
if
__name__
=
'__mian__'
__main__打错了
import pymysql class DBUtil: config={ 'host':'localhost', 'port':3306, 'user':'root', 'passwd':'rooot', 'db':'sxt', 'charset':'utf8' } def __init__(self) -> None: '''获取链接 获取游标''' self.con = pymysql.connect(**DBUtil.config) self.cursor=self.con.cursor() def close(self) -> None: '''关闭链接与游标''' if self.cursor: self.cursor.close() if self.con: self.con.close() def execute_dml(self,sql,args): '''可以执行dml语句,用于数据的增加、删除、修改''' try: #执行SQL self.cursor.execute(sql,args) #提交事务 self.con.commit() except Exception as e : print(e) if self.con: self.con.rollback() finally: self.close() if __name__=='__mian__': db=DBUtil() sql='insert into t_user values (0,%s,%s,%s);' db.execute_dml(sql,'马里奥',26,'男')
为什么我这个插入不了数据,执行没报错
老师,请问监督学习任务 除了 分类 和 回归,还有别的 吗?
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637