自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 AttributeError: ‘str‘ object has no attribute ‘append‘

tu_num1 = ('p','y','t',['o','n'])tu_num1[3][0].append('h')print(tu_num1)报错:AttributeError: ‘str’ object has no attribute ‘append’百度翻译:属性错误:字符串没有属性‘append’改正:tu_num1 = ('p','y','t',['o','n'])tu_num1[3].append('h')print(tu_num1)...

2020-10-17 17:23:50 29040 3

原创 ‘NoneType‘ object has no attribute ‘sort‘

题目:已知列表li_num1 = [4,5,1,7]和li_num2 = [3,6],请将这两个列表个并为一个列表,并将合并后列表中的元素按照从大到小的顺序排列。 错误代码:li_num1 = [4,5,1,7]li_num2 = [3,6]li_num3 = li_num1.extend(li_num2)li_num4 = li_num3.sort(reverse = True)错误分析:li_num1 = [4,5,1,7]li_num2 = [3,6]li_num3 =...

2020-10-17 16:55:13 8017

原创 用子查询的方法查找研发部比财务部所有雇员收入都高的雇员的姓名

第一遍:mysql> select 姓名 from employees -> where 编号 = -> (select 编号 from employees -> where 收入 = -> select 收入 -> from salary -> where 编号 = '4') -> and 收入 > max(收入 = -> select 收入 -> from sal

2020-10-05 11:02:49 6416 2

原创 MySQL中count函数是否忽略空值

count(*)统计所有项数,不忽略空值;2.count(字段) 忽略空值。

2020-10-03 09:18:52 5066 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除