摘要:
ModuleNotFoundError: No module named 'PIL' 解决方法: 运行命令:pip install Pillow IndentationError: expected an indented block 解决方法:注意缩进对齐 TypeError: cannot us 阅读全文
摘要:
文件: 代码: import pprintmessge = 'It was a bringht cold day in April,and the clocks were striking thrirteen'count = {}for char in messge: count.setdefaul 阅读全文
摘要:
以oracle的scott账户:找到员工表中薪水大于本部门平均薪水的员工为例 多表查询方式: select e.empno, e.ename, e.sal, d.avgsal from emp e, (select deptno, avg(sal) avgsal from emp group by 阅读全文
摘要:
一、字符串 字符串也可以用下标取值、切片、for循环、len()取长度以及 in 和 not in 来进行操作。 但字符串是不可变的,不能被更改。只能构造一个“新的”字符串来存取你想要修改后的数据。 二、元组 元组与列表几乎一样,但是元组输入时使用小括号并且元组和字符串一样,不可变。 如果元组中只有 阅读全文