- 博客(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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人