首页 > TAG信息列表 > shuxue
模块架构(最基本的简单的模块调用)
最基本的模块架构: import math from math import sqrt import math as shuxue print("下面是一个数学函数") print("调用函数",math.sqrt(3)) print("直接调用sqrt函数",sqrt(4)) print("调用函数",shuxue.sqrt(5)) 对于上面的代码,解释如下: 第一行:导入函数模块 第二行:从函数Hive经典案例:求出数学成绩大于语文成绩学生的信息
一、数据准备 有如下数据,学生id,课程,分数 1,yuwen,431,shuxue,552,yuwen,772,shuxue,883,yuwen,983,shuxue,65 二、需求分析 1、创建表 create table requirement( sid int, course string, score int ) row format delimited fields terminated by ','; 2、上传leetcode 删除一张表中重复邮箱的数据,并且保留最小id 的 那条
/*create view testview as SELECT subject,MIN(Id) as id FROM test GROUP BY subject;select * FROM test WHERE id not in (SELECT id FROM testview);*/ mysql> select * from test;+----+------------+-------+-----------+| id | name | score | subjectmysql 表联结,内部联结
mysql> select * from user;+------+----------+-----------+| id | name | address |+------+----------+-----------+| 1 | xiaoming | beijing || 2 | xiaobai | shandong || 3 | xiaohong | suzhou || 4 | xiaohei | changchun |+-----mysql 子查询
mysql> select * from test;+----+------------+-------+-----------+| id | name | score | subject |+----+------------+-------+-----------+| 1 | xiaoming | 89 | shuxue || 2 | xiaohong | 89 | shuxue || 3 | xiaohong | 80 |mysql 选择所有同学名字
mysql> select * from test;+----+----------+-------+-----------+| id | name | score | subject |+----+----------+-------+-----------+| 1 | xiaoming | 89 | shuxue || 2 | xiaohong | 89 | shuxue || 3 | xiaohong | 80 | english ||mysql 获取单个科目的平均分
mysql> select * from test;+----+----------+-------+-----------+| id | name | score | subject |+----+----------+-------+-----------+| 1 | xiaoming | 89 | shuxue || 2 | xiaohong | 89 | shuxue || 3 | xiaohong | 80 | english ||102-PHP多维数组的元素输出
<?php //定义一个三维数组 $grade=array('class1'=>array('stu1'=>array('yuwen'=>85,'shuxue'=>95,'yingyu'=>96), 'stu2'=>array('yuwen'=>