- 博客(19)
- 收藏
- 关注
原创 离线内网环境下装python环境
离线内网环境下装python环境下载python安装包并安装如果pip不能使用如何处理安装库下载python安装包并安装官网https://www.python.org/downloads/release/python-379/下载安装文件(本文使用python3.7.9版本)。本文以第二个windows x86-64 executeable installer为例,下载后双击执行。如果pip不能使用如何处理3.7版本自带pip,如果在cmd窗口执行pip命令报错可尝试以下命令:python -m
2021-01-13 08:12:27
1155
2
原创 CSS 元素显示优先级
(判断题) input属于窗体元素,显示比flash和其他任何元素都高(❌)解析:(1)优先级低的会被覆盖(2)有表单的高于无表单的,有窗口的高于无窗口的(3)如何人为改变实际文档中HTML元素的显示呢?通过z-index,数值越大优先级越高。但是z-index只能在同一类型的元素中起到作用,类似于PS中的图层,不在同一个图层上。 在网上看到的例子:当无窗口元素覆盖了...
2018-09-13 16:22:33
8915
原创 CSS - 清除浮动问题
做到一道题:(单选题) 浮动会导致页面的非正常显示,以下几种清除浮动的方法,哪个是不推荐使用的?A 在浮动元素末尾添加一个空的标签例如<div style="clear:both"></div>B 通过设置父元素overflow值为hiddenC 父元素也设置浮动D 给父元素添加clearfix类解析:A. clear属性不允许左右有浮动元素。...
2018-09-11 23:29:10
454
原创 CSS - 清除浮动问题
做到一道题:(单选题) 浮动会导致页面的非正常显示,以下几种清除浮动的方法,哪个是不推荐使用的?A 在浮动元素末尾添加一个空的标签例如<div style="clear:both"></div>B 通过设置父元素overflow值为hiddenC 父元素也设置浮动D 给父元素添加clearfix类解析:A. clear:both不允许左右有浮动...
2018-09-11 19:01:25
730
原创 通信原理
【信息、消息、信号】:通信是为了传递信息,信息可以通过各种形式的消息表达,比如短信消息、语音消息等等,而各种形式的消息都是通过各种形式的信号在实际物质世界中传播的,即通信实际传递的是信号。【信号】:又分为模拟信号和数字信号,都可以在连续或者离散的时间轴上描述,如: 【通信系统】:分为模拟通信系统和数...
2018-09-11 15:17:22
2309
原创 MapReduce
what is MapReduce?中心思想就是分治,单个计算作业分发给多个计算节点Word Count调度问题:nodes有什么数据就处理什么数据,减少网络通讯负担。master来调度,称为主节点流程:inputsplit:怎样把data分配给所有的nodesmap:每个nodes对分到的data进行处理,对每个文件里的每一条数据给出一个key-valueshuffl...
2018-09-09 10:25:28
165
原创 Mouse In and Out遇到的问题
行内样式>页内style标签内的样式>外部css文件 行内样式,style样式和外部css文件都可以通过js动态修改。页面渲染完之后在外部加一个id或者class,通过这个来定位并修改。举个例子,比如改变img的width:<!DOCTYPE html><html lang="en"> <head> <m...
2018-08-25 13:22:27
126
转载 并查集详解 (转)
这个文章是几年前水acm的时候转的, 当时也不知道作者是谁, 要是有人知道的话说一下吧并查集是我暑假从高手那里学到的一招,觉得真是太精妙的设计了。以前我无法解决的一类问题竟然可以用如此简单高效的方法搞定。不分享出来真是对不起party了。(party:我靠,关我嘛事啊?我跟你很熟么?)来看一个实例,杭电1232畅通工程首先在地图上给你若干个城镇,这些城镇都可
2017-06-04 23:24:31
140
原创 NO.8 week10 Climbing Stairs
2、How to Solve思路一:假设S(n) 代表climb n steps有S(n)种ways,那么S(n) = S(n-1)+ S(n-2) -------斐波那契数列起始:S(1) = 1 S(2) = 2然后从后往前(从n开始往前算)。分析:从后往前递归迭代,虽然思路很清晰,但是相同的子问题需要计算多次。比如:S(n) = S(n-1) + S(n-2)
2017-04-25 20:04:45
158
原创 No.7 week9 optimal division
1、Suscription2、How to solve数学思路:最大的商就需要最小的除数,形如a/(b/c/d/e.....)就可以得到最大的被除数和最小的除数。note:1. to_string函数将int转换成string类型2.string之间可以相加
2017-04-22 15:47:07
247
原创 No.6 week 9 Keyboard Row
1、DescriptionNote:You may use one character in the keyboard more than once.You may assume the input string will only contain letters of alphabet2.How to Solve
2017-04-22 14:33:03
247
原创 No5.week5
1.Description 2.How to Solve First sort both the two vectors and then compare elements one by one. Note:·Line 9: 分号 3.Analysis·Consider another situation for each element in th
2017-03-26 10:13:41
142
原创 No4.Week 4
1.DescriptionGiven an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty and th
2017-03-15 20:15:09
180
原创 No3.Week3 ugly number、add Digits
1.DescriptionUgly NumberWrite a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 ar
2017-03-09 18:17:50
196
原创 NO2.week2
1.DescriptionYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two n
2017-03-04 21:55:46
172
原创 No1. week 1 简单匹配算法
1. DescriptionGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you
2017-03-04 15:41:08
232
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人