随笔分类 - Demo
摘要:基础知识: ''' @Time : 2020/3/29 14:30 @Author : laolao @FileName: 2.py ''' import threading def thread_job(): print("This is an added Thread,number is %s"
阅读全文
摘要:chrome缩小25%后,背景图片不改变 我的背景图片是设置在body里面,所以CSS添加: body{ background:url("image/12.jpg") fixed; background-size: 100%; min-height: 1000px; background-size:
阅读全文
摘要:题目: 设CPU共有16根地址线,8根数据线,并用(低电平有效)作访存控制信号,作读写命令信号(高电平为读,低电平为写)。现有下列存储芯片:ROM(2K×8位,4K×4位,8K×8位),RAM(1K×4位,2K×8位,4K×8位),及74138译码器和其他门电路(门电路自定)。试从上述规格中选用合适
阅读全文
摘要:default.php index.php view.html.php helper.php controller.php frontend.php backend.php colorConfig.ini.php config.php router.php view.php search.php u
阅读全文
摘要:实验环境: kali2.0 + wind7虚拟机环境,都是net连接 流程: 1.setoolkit 启动社会工程工具集 2.选择社会工程学,编号为1 3.选择PowerShell攻击,编号为9 9) Powershell Attack Vectors 4.选择字母攻击 1) Powershell
阅读全文
摘要:一、INNER JOIN 用法: select column_name(s) from table 1 INNER JOIN table 2 ON table 1.column_name=table 2.column_name 例子: 两个表:three,user select* from thre
阅读全文
摘要:题目: 给定一个数组 {3, 1, 2, 1} 和一个数字k =4。求这个数组的一个最长连续子数组,这个最长连续子数组中所有数字的和必须小于或等于k。 例如,上面这个例子中,连续子数组有这么多种情况: {3}, {1}, {2}, {1}, {3, 1}, {1, 2}, {2, 1}, {3, 1
阅读全文
摘要:用爱发电 题目描述 Lyh学长用爱发电,为亲爱的学弟学妹们讲解c和c++,然而艰苦的条件限制着学长的发挥。学长的工作区上可能会出现一些地方无法写字! 假设有一个矩形背景,左下角的坐标为(0,0),学长矩形工作区的左下角坐标和右上角坐标为(x1,y1),(x2,y2),两个无法写字的矩形区域的左下角坐
阅读全文
摘要:#include<iostream> #include<algorithm> using namespace std; int main() { int data[4]={5,2,1,4}; sort(data,data+4); do { for(int i=0;i<4;++i) { cout<<d
阅读全文
摘要:添加注释版本: /* cout<<i<<endl<<" 结点 | data | weight | lchild | rchild | parent "<<endl; for(int i=1;i<=m;++i) { cout<<i<<" | "<<HT[i].data<<" | "<<HT[i].we
阅读全文
摘要:#include<stdio.h> #define MAX_LEN 1000 void build_tree(int arr[],int tree[],int node,int start,int end) { /* int arr[]: y int tree[]: int node:树的根节点 i
阅读全文
摘要:# encoding: utf-8 #题目是:在arr中选出一堆数字,选出的数字不能是与它相邻的,然后使得选出的数字之和最大 import numpy as np arr=[1,2,4,1,7,8,3] #递归写法 def rec_opt(arr,i): if i==0: return arr[0]
阅读全文
摘要:#include<iostream> #include<stdio.h> using namespace std; /** 创建一个堆:大的数是根 */ void swap(int arr[],int i,int j) { int temp= arr[i]; arr[i]=arr[j]; arr[j
阅读全文
摘要:''' @Modify Time @Author python基本语法 2019/10/26 8:16 laoalo ''' import functools from filecmp import cmp print('#'*50,"字符串") dss = " hello pyqt.5 " s1
阅读全文