Part 1 // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int n ...
分类:
其他好文 时间:
2019-12-31 23:18:28
阅读次数:
69
验证性实验二任然正确 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num; char name[20]; int score; }STU; int m ...
分类:
其他好文 时间:
2019-12-31 23:13:27
阅读次数:
96
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-31 21:49:14
阅读次数:
55
part 1 正确 part 2 正确,结果如下: 文本文件可以,二进制文件不行 #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为 ...
分类:
其他好文 时间:
2019-12-31 14:39:59
阅读次数:
50
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-31 14:26:21
阅读次数:
59
读取CSV 读取CSV文件时,,设置sep参数,可以替换分割用的符号: df = pd.read_csv('student_scores.csv', sep=':') df.head() 这样可以把冒号作为分隔符。 read_csv 的另一个功能是指定文件的哪一行作为标题,而标题指定了列标签。通常第 ...
分类:
其他好文 时间:
2019-12-31 14:09:40
阅读次数:
83
–数据库的创建create database goods1;//创建数据库goods1;create database goods2 if not exists goods1;//创建数据库goods1,如果不存在就创建create database goods3 default character ...
分类:
数据库 时间:
2019-12-31 10:57:52
阅读次数:
72
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-31 01:38:21
阅读次数:
79
select 一.课上练习代码 1 查询所有学生信息 2 查询所有课程名称及学分(投影和别名) 3 查询所有女学生的姓名和出生日期(筛选) 4 查询所有80后学生的姓名、性别和出生日期(筛选) 22 查询年龄最大的学生的姓名(子查询) 23 查询年龄最大的学生姓名和年龄(子查询+运算) 24 查询选 ...
分类:
数据库 时间:
2019-12-30 21:32:21
阅读次数:
93
面向对象最重要的概念就是类(Class)和实例(Instance),必须牢记类是抽象的模板,比如Student类,而实例是根据类创建出来的一个个具体的“对象”,每个对象都拥有相同的方法,但各自的数据可能不同。 ![Python的类class和实例instance的操作方法 ](https://img ...
分类:
编程语言 时间:
2019-12-30 17:36:12
阅读次数:
82