自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(373)
  • 收藏
  • 关注

转载 2019-10-03

1、主组件向从组件传参数, 从组件根据传递的参数-使页面呈现不同的响应结果:step1: 在子组件ts文件中 给属性用@Input() 符合标识此参数是从主组件传递过来的,属于输入参数, eg : @Input() hero: Hero; -->从主组件接收一个Hero对象的hero属性step2: 在主组件模板中给hero属性绑定值,eg:<app-hero-det...

2019-10-04 10:07:00 228

转载 2019-10-02

1、*ngFor 是一个结构型指令。结构型指令会通过添加,删除和操纵它们的宿主元素等方式塑造或重塑造DOM的结构。任何带有*的指令都是结构型指令So, for examples:<li *ngFor="let hero of heroes"> // <li>就是*ngFor的宿主元素JAVAScript内置对象、宿主对象、自定义对象的区别?内置对象:...

2019-10-03 09:20:00 214

转载 Oracle 11g的一些常用语句记录

一、表空间  1、创建临时表空间:create temporary tablespace project_temp tempfile 'D:\Oracle\dataspace\project_temp.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local;...

2019-09-27 22:47:00 316

转载 洛谷 P3431:[POI2005]AUT-The Bus(离散化+DP+树状数组)

题目描述The streets of Byte City form a regular, chessboardlike network - they are either north-south or west-east directed. We shall call them NS- and WE-streets. Furthermore, each street crosses t...

2019-09-25 10:10:00 178

转载 Python基础语法-List

列表的操作方法列表中存放的数据是可以进行修改的,比如"增"、"删"、"改""添加元素(“增” append、extend、insert)append添加元素 通过append可以向列表添加元素demo:# 定义变量A,默认有3个元素A = ['xiaoWang','xiaoZhang','xiaoHua']print("-----添加之前,列表A的数据---...

2019-09-24 15:05:00 120

转载 Python 基础语法-str

字符串常见操作find:检测str是否包含在 mystr 中,如果是返回开始的索引值,否则返回 -1mystr.index(str, start=0, end=len(mystr))count:返回 str 在 start 和 end 之间在mystr里面出现的次数mystr.count(str, start=0, end=len(mystr))...

2019-09-24 13:57:00 152

转载 Python 基础语法

注释的分类1、单行注释以“#”开头,#右边的所有东西当做说明,而不是真正要执行的程序,起辅助说明作用例如:# 我是注释,可以在里写一些功能说明之类的哦print('hello world')2、多行注释'''我是多行注释,可以写很多很多行的功能说明 这就是我牛X指出哈哈哈。。。 '''''' ...

2019-09-23 17:20:00 264

转载 认识Python

1、Python的发展历史起源Python的作者,Guido von Rossum,荷兰人。1982年,Guido从阿姆斯特丹大学获得了数学和计算机硕士学位。然而,尽管他算得上是一位数学家,但他更加享受计算机带来的乐趣。用他的话说,尽管拥有数学和计算机双料资质,他总趋向于做计算机相关的工作,并热衷于做任何和编程相关的活儿。在那个时候,Guido接触并使用过诸如Pasc...

2019-09-23 15:43:00 151

转载 Codeforces 777E:Hanoi Factory(贪心)

Of course you have heard the famous task about Hanoi Towers, but did you know that there is a special factory producing the rings for this wonderful game? Once upon a time, the ruler of the ancie...

2019-09-23 13:07:00 206

转载 2019HPU-ICPC-Training-1

byl太强了,学弟们太强了~全程被吊打,嘤嘤嘤~A题Connecting Verticeshttp://codeforces.com/problemset/problem/888/F不会B题Local Extremahttp://codeforces.com/problemset/problem/888/A给一列数字,判断一个数它的左右是否同时比...

2019-09-22 22:04:00 128

转载 Codeforces 777B:Game of Credit Cards(贪心)

After the fourth season Sherlock and Moriary have realized the whole foolishness of the battle between them and decided to continue their competitions in peaceful game of Credit Cards.Rules of t...

2019-09-22 21:40:00 149

转载 Codeforces 777D:Cloud of Hashtags(暴力,水题)

Vasya is an administrator of a public page of organization "Mouse and keyboard" and his everyday duty is to publish news from the world of competitive programming. For each news he also creates a...

2019-09-22 21:20:00 151

转载 Codeforces 777C:Alyona and Spreadsheet(预处理)

During the lesson small girl Alyona works with one famous spreadsheet computer program and learns how to edit tables.Now she has a table filled with integers. The table consists of n rows and m ...

2019-09-22 21:06:00 156

转载 Codeforces 888D: Almost Identity Permutations(错排公式,组合数)

A permutation \(p\) of size \(n\) is an array such that every integer from \(1\) to \(n\) occurs exactly once in this array.Let's call a permutation an almost identity permutation iff there exis...

2019-09-22 20:46:00 152

转载 Codeforces 888E:Maximum Subsequence(枚举,二分)

You are given an array a consisting of n integers, and additionally an integer m. You have to choose some sequence of indices \(b_1, b_2, ..., b_k (1 ≤ b_1 < b_2 < ... < b_k ≤ n)\) in su...

2019-09-22 20:28:00 201

转载 Codeforces 888C: K-Dominant Character(水题)

You are given a string s consisting of lowercase Latin letters. Character c is called k-dominant iff each substring of s with length at least k contains this character c.You have to find minimum...

2019-09-22 19:52:00 89

转载 PLSQL安装过程和SCOTT用户被锁的解决方法

一、PLSQL安装:  PLSQL基本就是一键式安装,没有什么需要修改的东西,一路Next就行了。      二、SCOTT用户被锁问题解决  1、问题如下:      SCOTT用户默认是被锁的,需要通过system管理员账户打开SCOTT用户的锁。  Username(用户名):system  Password(密码):sys  Da...

2019-09-22 11:55:00 556

转载 安装Oracle 11g时遇到“【INS-13001】此环境不满足最低配置”的问题解决

一、问题如下:    win10一般容易出现这个问题,可能是版本兼容的关系。二、解决方法:  在Oracle 11g解压出的文件夹下寻找cvu_prereq.xml文件:    路径:database\stage\cvu\cvu_prereq.xml        用记事本打开这个文件,进行编辑:  在6.1下面添加: ...

2019-09-21 23:14:00 191

转载 Oracle 11g安装过程

一、安装包下载  下载地址:https://www.oracle.com/database/technologies/oracle-database-software-downloads.html    安装包是分为两部分,下载Oracle 11g的两个压缩包到本地。  用Ctrl同时选中两个压缩包,解压到同一个文件夹中。    二、安装  解压出的目录...

2019-09-21 23:08:00 87

转载 BZOJ 1857: [Scoi2010]传送带(三分套三分)

Time Limit: 1 Sec Memory Limit: 64 MBSubmit: 2549 Solved: 1370[Submit][Status][Discuss]Description在一个2维平面上有两条传送带,每一条传送带可以看成是一条线段。两条传送带分别为线段AB和线段CD。lxhgww在AB上的移动速度为P,在CD上的移动速度为Q,在平面上的移动速度R...

2019-09-20 17:24:00 60

转载 HDU 4355:Party All the Time(三分模板)

Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6979 Accepted Submission(s): 2181Problem DescriptionIn the Dark forest, there is a ...

2019-09-20 11:55:00 64

转载 Codeforces 931C:Laboratory Work(构造)

C. Laboratory Worktime limit per test : 1 secondmemory limit per test : 256 megabytesinput : standard inputoutput : standard outputAnya and Kirill are doing a physics laboratory work. In o...

2019-09-19 20:00:00 124

转载 Codeforces 931D:Peculiar apple-tree

D. Peculiar apple-treetime limit per test : 1 secondmemory limit per test : 256 megabytesinput : standard inputoutput : standard outputIn Arcady's garden there grows a peculiar apple-tree ...

2019-09-19 17:42:00 155

转载 Linux命令

命令格式command [-options] [parameter]命令 选项 参数ls:英文list的简写,列出目录下的文件/文件夹,“.”代表当前目录,“..”代表上一级目录,以“.”开头的文件为隐藏文件 选项 -a:显示制定目录下所有子目录与文件夹,包含隐藏文件 选项 -l:以列表方式显示文件的详细信息 ...

2019-09-19 16:11:00 97

转载 oracle11g安装步骤详细图文教程

一、下载oracle11g下载地址:https://www.oracle.com/database/technologies/oracle-database-software-downloads.html二、oracle11g的安装步骤1.在数据库安装光盘或安装文件夹中双击setup.exe2.打开配置安全更新界面,将电子邮件置空,并取消选中安全更新选项...

2019-09-17 20:06:00 2228

转载 牛客练习赛44 B:小y的线段

链接:https://ac.nowcoder.com/acm/contest/634/B来源:牛客网题目描述给出\(n\)条线段,第\(i\)条线段的长度为\(a_i\),每次可以从第\(i\)条线段的j位置跳到第\(i + 1\)条线段的\(j+1\)位置。如果第\(i+1\)条线段长度不到\(j+1\),那么就会回到第\(i\)条线段的\(0\)位置,然后继续跳。问从第\(i...

2019-09-17 15:52:00 43

转载 Vim命令

三种模式: 命令模式、编辑(插入模式)、末行模式  命令: 命令模式: 复制粘贴: yy:复制-光标所在的这一行 4yy:复制-光标所在行向下的4行 p:粘贴-(光标下一行粘贴) 删除命令: dd:剪切(删除)-光标所在的这一行 2dd:剪切(删除)-光标所在的行...

2019-09-17 15:21:00 93

转载 lambda 的“一个语法,三个特性,四个用法,一个争论”

https://blog.csdn.net/zjuxsl/article/details/79437563转载于:https://www.cnblogs.com/peak911/p/11533931.html

2019-09-17 15:06:00 86

转载 牛客练习赛44 C:小y的质数

链接:https://ac.nowcoder.com/acm/contest/634/C?tdsourcetag=s_pcqq_aiomsg来源:牛客网题目描述给出一个区间\([L,R]\),求出\([L,R]\)中孪生质数有多少对。由于这是一个区间筛质数的模板题。所以小k不屑于去写。所以出题人只好yy了另一道题。定义\(k\)生互质数为满足\(y + k\)与\(y - k...

2019-09-17 14:23:00 98

转载 PHP 生成公钥私钥,加密解密,签名验签

test_encry.php<?php//创建私钥,公钥//create_key();//要加密内容$str = "test_str";//加密$encrypt_str = test_encrypt($str);//解密$decrypt_str = test_decrypt($encrypt_str);//echo $decrypt_st...

2019-09-16 21:09:00 2258

转载 使用JDOM创建XML文档

    在使用JDOM实现输出的代码中,首先在内存中构建一个空的Document对象,然后根据要输出的实际内容生成相应的对象,逐级添加对象,添加时要注意内容的嵌套关系。示例:1.新建students.cssname{ display: block; font-size: 28px; text-align: center;}2....

2019-09-16 17:13:00 133

转载 使用JDOM解析XML文档

一、导入依赖包第一步:在https://mvnrepository.com/search?q=jdom网站上搜索jdom第二步:选择相应的版本第三步:复制dependency内容第四步:新建工程,并在pom.xml中添加dependency使用JDOM4J解析XML文档如法炮制,将jdom4j导入到pom.xml中...

2019-09-16 16:19:00 172

转载 欢迎刘景泽同学

=+=转载于:https://www.cnblogs.com/CLGYPYJ/p/11520468.html

2019-09-14 21:58:00 207

转载 常用模块汇总

1.数据库模块pymysql2. http模块urllibrequestsurllib3.日志logging4.excelxlrd转载于:https://www.cnblogs.com/peak911/p/11507052.html

2019-09-11 16:31:00 197

转载 Mysql类

#-*-coding:utf-8-*-import pymysql.cursorsfrom pymysql.err import *import Logfrom common.setting import *log = Log.getLogger()''' MySQL工具类'''class MySqlUtil: @stat...

2019-09-11 16:07:00 66

转载 Http类

#coding:utf-8from urllib.error import URLErrorimport requestsimport common.Log as Logimport sslimport urllibimport os'''@author: jinff@license: (C) Copyright 2016-2020, 中国制造...

2019-09-11 16:00:00 118

转载 Log类

#coding:utf-8import loggingfrom logging import handlersfrom datetime import datetimeimport threadingimport os'''logging模块简介Python的logging模块提供了通用的日志系统,可以方便第三方模块或者是应用使用。这个模块...

2019-09-11 15:58:00 83

转载 supersocket client 的简单使用方法

由于需要在服务端和客户端持续通信,于是在网上找了好久的socket通信工具。刚开始想直接用.net自带的socket通信,后来担心不够稳定健壮,毕竟自己不专业。找来找去觉得supersocket还可以,但是说实话,他们的帮助文档写的真是太烂了,使用也不够简单易懂,折腾了一阵大致明白如何使用。1,在nuget上引用supersocket.clientengine和supersocket...

2019-09-09 22:34:00 1381

转载 spring boot 日志收集整理

spring boot 日志1. 选择那种日志框架slf4j 是抽像的接口层。也是spring boot 默认采用的接口层。util.logging,log4j,logback,commons-logging默认采用的logback新一代的框架.其它的则是spring使用不的适配器来动态绑定到不同的日志框架上。也有为了适配不同的第三方包使用统一的日志框架,而生出的包装第三方日志框...

2019-09-09 16:20:00 292

转载 关于.ipynb文件

一、简介:  .ipynb文件即为Jupyter Notebook,是一个交互式笔记本,支持运行 40 多种编程语言。  Jupyter Notebook 的本质是一个 Web 应用程序,便于创建和共享文学化程序文档,支持实时代码,数学方程,可视化和 markdown。它的主要用途是:数据清理和转换,数值模拟,统计建模,机器学习等,Jupyter Notebook 与 IPyth...

2019-09-09 10:56:00 1901

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除