摘要: 1 import requests 2 from requests.exceptions import RequestException 3 from lxml import etree 4 import csv 5 import re 6 import time 7 from urllib imp 阅读全文
posted @ 2020-11-05 20:09 AsunaLGLL 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 利用pymssql库进行连接数据库 一.数据库连接使用的工具: 1.SQL SEVER 2014 2.社区版 pycharm 3.python 3.8 二.社区版 pycharm添加库 1.安装以上的工具,并且能够运行 2.添加添加pymssql库 方法一:内部安装,对pycharm进行操作,添加p 阅读全文
posted @ 2020-07-08 19:04 AsunaLGLL 阅读(1253) 评论(0) 推荐(0) 编辑
摘要: 一、理解数据库的范式需要理解几个基本概念: 码:表中可以唯一确定一个元组的某个属性(或者属性组),如果这样的码有不止一个,那么大家都叫候选码,我们从候选码中挑一个出来做老大,它就叫主码。相当于键值的意思。 主属性:一个属性只要在任何一个候选码中出现过,这个属性就是主属性。 非主属性:与上面相反,没有 阅读全文
posted @ 2020-06-08 19:52 AsunaLGLL 阅读(2029) 评论(0) 推荐(0) 编辑
摘要: exists关键字是用来判断查询结果是否存在,当查询存在结果时则返回真,否则返回假。not exists则相反。 使用子查询进行存在性测试时,一般使用exists谓词。带着个谓词的子查询不返回查询的数据,只返回逻辑真值与假植select Sname from student Where exists 阅读全文
posted @ 2020-06-01 16:55 AsunaLGLL 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 #define OK 1 5 #define ERROR 0 6 #define MAXQSIZE 10 7 typedef int Status; 8 typedef int QElemType; //定 阅读全文
posted @ 2020-04-15 14:54 AsunaLGLL 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 各个函数实现的并不完整,许多地方写完之后才考虑到,但是总体还是能够勉强运行的,如果有对相关代码实现有更好的删改,希望能够分享出来。 链表实现 姓名只能支持2个字和3个字的,学号是九位 增:只能在末尾增加 删,改,查:如果有重复的数据只能操作其中的一个 这个代码利用了txt文件作为输入,输出,保存的媒 阅读全文
posted @ 2020-04-11 12:46 AsunaLGLL 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <malloc.h> 3 4 #define OK 1 5 #define ERROR 0 6 typedef int Status; 7 typedef int QElemType; //队列中的元素类型 8 9 typedef st 阅读全文
posted @ 2020-04-08 12:31 AsunaLGLL 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdio.h" 2 #include "malloc.h" 3 #define OK 1 4 #define ERROR 0 5 6 typedef int Status; 7 typedef int ElemType; 8 9 typedef struct LNode 1 阅读全文
posted @ 2020-03-17 16:21 AsunaLGLL 阅读(232) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #include "malloc.h" #define LIST_INIT_SIZE 100 #define LISTINCREMENT 10 #define OK 1 #define ERROR 0 typedef int Status; typedef in 阅读全文
posted @ 2020-03-17 14:38 AsunaLGLL 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: # include<stdio.h> int main() { int a, i; for (i = 1; i <= 50; i++) { for (a = 2; a < 50; a++) if (i % a == 0)break; if (i != a)continue; printf("%5d" 阅读全文
posted @ 2020-02-11 15:30 AsunaLGLL 阅读(5741) 评论(1) 推荐(0) 编辑