ICode9

精准搜索请尝试: 精确搜索
  • Python 提高元组的可读性2019-10-25 09:07:13

    假设学生系统中数据为固定格式:(名字,年龄,性别,邮箱) ('jack','16','male','jack3001@gmail.com') ('eric','17','male','eric@qq.com') ('xander','16','female','lucy123@

  • 记录相关操作2019-10-16 18:04:35

    记录相关操作 一、插入数据 1. 插入完整数据(顺序插入) 语法一: INSERT INTO 表名(字段1,字段2,字段3…字段n) VALUES(值1,值2,值3…值n); 语法二: INSERT INTO 表名 VALUES (值1,值2,值3…值n);2. 指定字段插入数据 语法: INSERT INTO 表名(字段1,字段2,字段

  • 3-3-4 枚举类型与集合类型2019-10-13 10:02:01

    枚举类型与集合类型 字段的值只能在给定范围中选择,如单选框,多选框 enum 单选 只能在给定的范围内选一个值,如性别 sex 男male/女female set 多选 在给定的范围内可以选择一个或一个以上的值(爱好1,爱好2,爱好3...) MariaDB [db1]> create table consumer( -> name varchar(50),

  • 多表查询2019-09-17 12:04:07

    准备 建表与数据准备 #建表 create table department( id int, name varchar(20) ); create table employee( id int primary key auto_increment, name varchar(20), sex enum('male','female') not null default 'male', age int, dep_id int ); #插

  • The usage of Markdown---表格2019-09-14 17:50:22

    更新时间:2019.09.14   谈到怎么在Markdown中插入表格,其实只要熟知以下几点就可以了: 使用管道符|进行内容的分割 使用冒号:和连号符-表示表格内容的对齐情况,连号符-在中间,冒号:在左端表示左对齐,在右端表示右对齐,两端都有表示居中 每一行最左端和最右端的管道符|都可以省略 <!--

  • 百万年薪python之路 -- MySQL数据库之 MySQL行(记录)的操作(二) -- 多表查询2019-09-03 18:54:26

    MySQL行(记录)的操作(二) -- 多表查询 数据的准备 #建表 create table department( id int, name varchar(20) ); create table employee( id int primary key auto_increment, name varchar(20), sex enum('male','female') not null default 'male', age int,

  • 多表查询2019-08-29 13:02:23

    本节重点: 多表连接查询 符合条件连接查询 子查询 准备工作:准备两张表,部门表(department)、员工表(employee) create table department(id int,name varchar(20) );create table employee(id int primary key auto_increment,name varchar(20),sex enum('male','female') not null d

  • Python 提高元组的可读性2019-08-20 19:55:19

    假设学生系统中数据为固定格式:(名字,年龄,性别,邮箱) ('jack','16','male','jack3001@gmail.com') ('eric','17','male','eric@qq.com') ('xander','16','female','lucy123@y

  • MySQL外键及修改表和复制表2019-08-20 15:03:56

    外键 前戏之一对多关系 # 定义一张部门员工表id name gender dep_name dep_desc1 jason male 教学部 教书育人2 egon male 外交部 漂泊游荡3

  • js {} []2019-08-06 18:05:53

    js {} [] {}:对象 大部分情况下要有成对的属性和值,或是函数 值 如:var ZhangSan = {name:“ZhangSan”,age:“18”} 取值方式 var a1 = ZhangSan [“name”];//ZhangSan var a2 = ZhangSan.name;//ZhangSan 两种取值方式语法上没有问题; 但第二种无法适用于当key为动态时

  • python基础(第三章)布尔表达式+条件判断(下)2019-07-31 15:38:08

    条件判断 流程控制 顺序结构---一步步执行 选择结构---在某一步选择性执行 循环结构---在一定条件下,一直执行某段代码(事情) 条件判断 If ---如果 If 条件==True:执行if里面的语句 If xxx:….  else:如果….否则 只有2种情况,肯定会执行其中一个 对立面的情况在使用 多种

  • PAT甲级——A1036 Boys vs Girls2019-07-27 21:02:31

    This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Input Specification: Each input file contains one test case. Each case contains a positive integer N, follow

  • javascript 对后台返回的数据进行分类2019-07-12 17:54:33

    模拟后台返回的数据为: var arr = [ {personName:"张三",id:1,age:12,gender:"male"}, {personName:"张三",id:1,age:12,gender:"male"}, {personName:"张三",id:1,age:12,gender:"male"}, {personName:"李四&qu

  • java8新特性Lambda(4)2019-06-26 13:00:22

    import java.util.ArrayList;import java.util.List;import com.test.lambda.Person.Sex;public class Lambda03 { public static void main(String[] args) { List<Person> list = new ArrayList<Person>(); Person p1 = new Person("zhan

  • 1036 Boys vs Girls (25 分)2019-06-16 14:01:00

    This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Input Specification: Each input file contains one test case. Each case contains a positive integer N, follow

  • spark作业2019-06-13 16:48:49

    假定用户有某个周末网民网购停留时间的日志文本,基于某些业务要求,要求开发 Spark应用程序实现如下功能: 1、实时统计连续网购时间超过半个小时的女性网民信息。 2、周末两天的日志文件第一列为姓名,第二列为性别,第三列为本次停留时间,单 位为分钟,分隔符为“,”。     数据:   log1.tx

  • Mysql外连接中多个条件需要特殊注意之处2019-06-10 13:04:38

    left join 关键字会从左表那里返回所有的行,即使在右表中没有匹配的行。查询中 on 的条件只有一个,因此不存在特殊注意之处。但是当我们 on 条件如果存在多个时候会出现一些与我们预期不符的查询结果。 用户表: mysql> select * from tab_user; +---------+------+--------+----------

  • 12,单表查询2019-05-23 12:39:57

    12-单表查询   本节重点:   单表查询   语法: 一、单表查询的语法 SELECT 字段1,字段2... FROM 表名 WHERE 条件 GROUP BY field HAVING 筛选 ORDER BY field LIMIT 限制条数二、关

  • MySQL之外键2019-05-14 15:42:37

    外键 前戏之一对多关系 id  name  gender  dep_name  dep_desc1   jason   male   教学部    教书育人2   egon   male   外交部    漂泊游荡3   tank   male   教学部    教书育人4   kevin   male   教学部    教书

  • 006 样式2019-05-03 13:45:00

      开始css的复习。 一:引入css样式表 1.分类   内部样式表   行内式(内联样式)   外联样式(外联式)   2.内联样式   style=“”   3.案例   自己查找书写位置。 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</ti

  • Bee2019-05-01 16:54:35

    In Africa there is a very special species of bee. Every year, the female bees of such species give birth to one male bee, while the male bees give birth to one male bee and one female bee, and then they die! Now scientists have accidentally found one “ma

  • 第四篇:记录相关操作 多表查询2019-03-24 08:51:54

    http://www.cnblogs.com/linhaifeng/articles/7267596.html 一 介绍 本节主题 多表连接查询 复合条件连接查询 子查询 准备表 #建表create table department(id int,name varchar(20) );create table employee(id int primary key auto_increment,name varchar(20),sex enum('m

  • 字符串2019-03-22 18:49:37

    用途:记录描述性质的状态 定义:定义方式:在单引号、双引号、三引号内包含一串字符串 数据类型转换:所有类型都可以被str转成字符串类型 优先掌握的操作:   1、按照索引取值(正向取+反向取):只能取 msg='hello'print(msg[-1])print(msg[0])oh     2、切片(顾头不顾尾,步长) msg='hello'

  • python数据结构之字典(未完成)2019-03-19 21:50:18

    字典 dic = {key:value} 1.字典特性 key必须是唯一的,值不必是唯一。 值可以是任何数据类型,比如list,tuple,字符,数值等。key只能是不可变的数据类型。 同一个key不允许重复,如果出现重复,后一个值会覆盖到前面重复的key。字典的这种特性,使得它常常被用作读取数据的数据储存结构。 2.字典

  • Pandas系列(十)-转换连接详解2019-03-12 15:41:57

    目录 1. 拼接 1.1 append 1.2 concat 2. 关联 2.1 merge 2.2 join 数据准备 # 导入相关库import numpy as npimport pandas as pd"""拼接有两个DataFrame,都存储了用户的一些信息,现在要拼接起来,组成一个DataFrame,如何实现呢?"""data1 = { "name": ["Tom", &qu

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有