摘要:
(六)字符串的比较 is 是通过比较两个对象的内存地址,查看内存地址的方法是id() in 是包含 == 是类型和内容一致 a=1b=1print(id(a))print(id(b))if a is b: print('a和b的内存地质一样')str1='aa,bb,c'str2='aa'if s 阅读全文
摘要:
五.聚合函数 32.查询总数: select count(1) from user; 33.查询年龄总和 select sum(age) as 总和 from user; 34.查询年龄平均值 select avg(age) as 平均年龄 from user; 35.查询年龄中最大值 select 阅读全文