🌍首页
📁归档
⏳时光机
🚩友链
📫留言
📧订阅
🌟推荐
📕考研课程
🏜️ 免费壁纸
❤ 捐助本站
💰资助名单
🎵音乐实验
Search
1
【NPN/PNP三极管】放大电路饱和失真和截止失真的区别
20,264 阅读
2
论文写作中如何把word/wps里面所有数字和字母替换为新罗马字体
10,790 阅读
3
【高数】形心计算公式讲解大全
9,138 阅读
4
Vivado-FPGA Verilog烧写固化教程
8,204 阅读
5
【概论】一阶矩、二阶矩原点矩,中心矩区别与概念
7,923 阅读
🪶微语&随笔
励志美文
我的随笔
工作办公
📡电子&通信
嵌入式&系统
通信&信息处理
编程&脚本笔记
⌨️IC&系统
FPGA&ASIC
VLSI&IC验证
EDA&虚拟机
💻电子&计算机
IP&SOC设计
机器学习
软硬件算法
登录
/
注册
ed(共165篇)
找到
165
篇与
ed
相关的结果
- 第 12 页
2021-04-18
爱要及时说出口【双语美文】
摘要一个患癌症的男孩在生命的最后时刻鼓起勇气向喜欢的女孩表白,留下纸条表达爱意。母亲发现后,男孩已经离世,留下满满一柜子的未拆CD,每张CD里都有一张纸条,男孩用这种方式表达爱意。关键词:及时表达爱意,癌症,青春爱情故事,双语美文,情感故事图片 There was once a guy who suffered from cancer, a cancer that can't be cured. He was 18 years old and he could die anytime. All his life, he was stuck in his house being taken cared by his mother. He never went outside but he was sick of staying home and wanted to go out for once. So he asked his mother and she gave him permission. 曾有一男孩,患了不治之癌。他才18岁,但生命随时会结束。一直以来,男孩都被困在屋子里,由他的母亲照料。男孩从未出去过,但他厌倦了一直窝在家里,想出去走一走。男孩因此询问他的母亲,并得到了母亲的同意。 {mp3 name="朗读" url="https://d3.s.hjfile.cn/2015/201506_4/3a8286f7-5138-4db3-b7ca-c2a008a977d6.mp3" cover="" theme="#f0ad4e" autoplay="autoplay"/} He walked down his block and found a lot of stores. He passed a CD store and looked through the front door for a second as he walked. He stopped and went back to look into the store. He saw a beautiful girl about his age and he knew it was love at first sight. He opened the door and walked in, not looking at anything else but her. He walked closer and closer until he was finally at the front desk where she sat. 男孩出了门,路过了许多家店。经过一家卖CD的音像店时他看了眼前门。男孩停了下来,并走回去又往店里看了看。他看见一个漂亮的女孩,年龄大约和他一般大。男孩意识到他一眼就爱上了这女孩。他打开了这家店的门,走了进去,什么也不看,就只看着她。男孩越走越近,直到来到这女孩坐着的前台。 She looked up and asked, "Can I help you?" 女孩抬起头来问道:“有什么需要帮忙的吗?” She smiled and he thought it was the most beautiful smile he has ever seen before and wanted to kiss her right there. 女孩笑了笑,男孩认为这是他见过的最美丽的笑容,他甚至想当场就亲吻这女孩。 He said, "Uh... Yeah... Umm... I would like to buy a CD." 他说道:“呃…是的…嗯…我想买张CD。” He picked one out and gave her money for it. 男孩随便挑了一张出来并把钱递给女孩。 "Would you like me to wrap it for you?" she asked, smiling her cute smile again.“ 需要我帮你把它包起来吗?”女孩问,脸上又露出可爱的微笑。 He nodded and she went to the back. She came back with the wrapped CD and gave it to him. He took it and walked out of the store. 男孩点了点头,女孩走到前台的后面。回来的时候女孩拿着包装好了的CD,交给了男孩。他拿了过来,然后走出了这家店。 He went home and from then on, he went to that store every day and bought a CD, and she wrapped it for him. He took the CD home and put it in his closet. He was still too shy to ask her out and he really wanted to but he couldn't. His mother found out about this and told him to just ask her. So the next day, he took all his courage and went to the store as usual. He bought a CD like he did every day and once again she went to the back of the store and came back with it wrapped. He took it and when she wasn't looking, he left his phone number on the desk and ran out... 男孩回到了家。从那以后,他每天都会来这家店,买一张CD,然后女孩就给他包装起来。男孩把CD带回家,放进他的衣橱里。他还是很害羞,不敢把她约出来。他真的很想,但是他做不到。男孩的母亲知道了此事后,就告诉他,只管把她约出来就好了。于是第二天,男孩鼓起了全部的勇气,像往常一样来到了店里。像过去那样,他还是买了一张CD,而女孩也还是走到后面,回来的时候再把包装好的CD交给他。男孩接了过来,趁女孩不注意,他把他的电话号码留在了桌子上,然后跑了出去… RRRRRING!!! “铃铃铃铃铃铃…” One day the phone rang, and the mother picked it up and said, "Hello?" 一天,电话响了起来。男孩的母亲接起电话说道,“你好?” It was the girl!!! The mother started to cry and said, "You don’t know? He passed away yesterday..." 是那个女孩!!!男孩的母亲开始哭了起来,说道:“你不知道吗?他昨天就去世了…” The line was quiet except for the cries of the boy's mother. Later in the day, the mother went into the boy's room because she wanted to remember him. She thought she would start by looking at his clothes. So she opened the closet. 电话里安静了下来,只听到男孩母亲啜泣的声音。之后,男孩的母亲来到了他的房间,缅怀她的儿子。男孩的母亲想先看一看男孩的衣物。于是她打开了男孩的衣柜。 She was face to face with piles and piles and piles of unopened CDs. She was surprised to find all these CDs and she picked one up and sat down on the bed and she started to open one. Inside, there was a CD and as she took it out of the wrapper, out fell a piece of paper. The mother picked it up and started to read it. It said: Hi... I think U R really cute. Do u wanna go out with me? Love, Jocelyn. 在她的面前,是一摞又一摞的CD。看到这么多的CD,男孩的母亲感到很惊讶。她随手拿出一张,坐在了男孩床上。她拆开了包装,把CD拿了出来。一张纸条掉了出来。男孩的母亲捡起了纸条,开始读起来。上面写着:你好…我觉得你真的很可爱。你想和我出去约会吗?爱你的,乔瑟琳。 The mother was deeply moved and opened another CD... 男孩的母亲被深深打动了,拆开了另一张CD… Again there was a piece of paper. It said: Hi... I think U R really cute. Do u wanna go out with me? Love, Jocelyn. 又发现了另一张纸条。上面写着:你好…我觉得你真的很可爱。你想和我出去约会吗?爱你的,乔瑟琳。 Love is... when you've had a huge fight but then decide to put aside your egos, hold hands and say, "I Love You." 爱就是…当你万般挣扎过后,把自我放到一边,握住对方的手,说:“我爱你。”
励志美文
刘航宇
5年前
4
538
2
2021-04-04
博客中动态背景线条跟随鼠标移动,吸附鼠标效果代码
摘要本文介绍了一种通过JavaScript代码实现网页动态背景线条跟随鼠标移动效果的方法。代码可复制到网页的标签上方、下方或网站底部模板文件中,实现鼠标吸附效果。关键词:动态背景线条, 鼠标跟随效果, JavaScript代码, 鼠标吸附效果, 网页特效添加方法:将下方代码复制到网站想添加线条跟随鼠标移动效果的页面上方or下方或添加到网站底部模板文件 foot.htm 里面 <!--代码放置于</body>上or下方--> <script> !function(){ function n(n,e,t){ return n.getAttribute(e)||t } function e(n){ return document.getElementsByTagName(n) } function t(){ var t=e("script"),o=t.length,i=t[o-1]; return{ l:o,z:n(i,"zIndex",-1),o:n(i,"opacity",.5),c:n(i,"color","0,0,0"),n:n(i,"count",99) } } function o(){ a=m.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth, c=m.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight } function i(){ r.clearRect(0,0,a,c); var n,e,t,o,m,l; s.forEach(function(i,x){ for(i.x+=i.xa,i.y+=i.ya,i.xa*=i.x>a||i.x<0?-1:1,i.ya*=i.y>c||i.y<0?-1:1,r.fillRect(i.x-.5,i.y-.5,1,1),e=x+1;e<u.length;e++)n=u[e], null!==n.x&&null!==n.y&&(o=i.x-n.x,m=i.y-n.y, l=o*o+m*m,l<n.max&&(n===y&&l>=n.max/2&&(i.x-=.03*o,i.y-=.03*m), t=(n.max-l)/n.max,r.beginPath(),r.lineWidth=t/2,r.strokeStyle="rgba("+d.c+","+(t+.2)+")",r.moveTo(i.x,i.y),r.lineTo(n.x,n.y),r.stroke())) }), x(i) } var a,c,u,m=document.createElement("canvas"), d=t(),l="c_n"+d.l,r=m.getContext("2d"), x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame|| function(n){ window.setTimeout(n,1e3/45) }, w=Math.random,y={x:null,y:null,max:2e4};m.id=l,m.style.cssText="position:fixed;top:0;left:0;z-index:"+d.z+";opacity:"+d.o,e("body")[0].appendChild(m),o(),window.onresize=o, window.onmousemove=function(n){ n=n||window.event,y.x=n.clientX,y.y=n.clientY }, window.onmouseout=function(){ y.x=null,y.y=null }; for(var s=[],f=0;d.n>f;f++){ var h=w()*a,g=w()*c,v=2*w()-1,p=2*w()-1;s.push({x:h,y:g,xa:v,ya:p,max:6e3}) } u=s.concat([y]), setTimeout(function(){i()},100) }(); </script>
我的随笔
刘航宇
5年前
0
387
4
2021-03-27
ds和dx,dy,cos(τ,y),cos(τ,x)的关系及其cos(n,x)=cos(t,y),cos(n,y)=-cos(t,x)证明
摘要本文探讨了ds与dx,dy,以及cos(τ,y),cos(τ,x)之间的关系,并证明了cos(n,x)=cos(t,y),cos(n,y)=-cos(t,x)的关系。通过向量求偏导和方向导数的方法,阐述了相关公式和例题。关键词:ds, dx, dy, cos函数, 向量偏导对向量求偏导,不妨对其求方向导数。 关系证明 图片 例题: 图片
我的随笔
刘航宇
5年前
0
1,313
6
2021-03-25
图像增强级matlab实现中值滤波
摘要本文介绍了图像平滑的概念,对比了均值滤波和中值滤波的原理和特点,并探讨了中值滤波在处理椒盐噪声时的优势。此外,还简要介绍了Laplacian算子增强图像边缘的原理、伪彩色增强的方法以及图像锐化处理的不同方法。最后,给出了Matlab中实现中值滤波的代码示例。关键词:图像增强, 中值滤波, Matlab实现, 图像平滑, 噪声抑制1.何谓图像平滑?试述均值滤波的基本原理。 2.何谓中值滤波?有何特点? 答: 1.为抑制噪声、改善图像质量所进行的处理称为图像平滑或去噪。 均值滤波的基本原理:用均值代替原图像中的各个像素值,即对待处理的当前像素点(x,y),选择一个模板,该模板由其近邻的若干像素组成,求模板中所有像素的均值,再把该均值赋予当前像素点(x,y),作为处理后图像在该点上的灰度个g(x,y),即个g(x,y)=1/m∑f(x,y) m为该模板中包含当前像素在内的像素总个数。 2.中值滤波是对一个滑动窗口内的诸像素灰度值排序,用其中值代替窗口中心像素的灰度值的滤波方法,是一种非线性的平滑法。 特性: (1)对离散阶跃信号不产生影响,连续个数小于窗口长度一半的离散脉冲将被平滑,三角函数的顶部平坦化; (2)令C为常数,则: Med{CFjk}=CMed{Fjk} Med{C+Fjk}=C+Med{Fjk} Med{Fjk+fjk}≠Med{Fjk}+Med{fjk} (3)中值滤波后,信号频谱基本不变 图片 答:1.中值滤波是对一个滑动窗口的诸像素灰度值排序,用中间值代替窗口中心像素的原来灰度值,它是一种非线性的图像平滑法。中值滤波后的结果为(忽略边界): 图片 2.局部平滑法(邻域平均法 或 移动平均法)是用邻域各像素的灰度平均值代替该像素原来的灰度值,实现图像的平滑。 图片 比较:中值滤波法和邻域平均法均能有效削弱椒盐噪声,但中值滤波法比邻域平均法更有效,且滤波后图像中的轮廓比较清晰。 3.Laplace算子为何能增强图像边缘? 4.什么是 伪彩色增强?常用的伪彩色增强有哪些方法? 答: 3.(1)由于灰度均匀的区域或斜坡中间▽f(x,y)为0,Laplacian增强算子不起作用; (2)在斜坡底或低灰度侧形成“下冲”,而在斜坡顶或高灰度侧形成“上冲”。Laplacian 增强算子具有突出边缘的特点 4.伪彩色增强对不同灰度级赋予不同的颜色,从而将灰度图像变为彩色图像。 方法:灰度分层法、灰度变换法、频域滤波法 图像锐化处理有几种方法? 答:微分法、非锐化滤波、高频增强滤波 求图像梯度例题 设1 幅7×7大小的二值图像中心处有1 个值为0 的3×3大小的正方形区域,其余区域的值为1,如题下图所示。请使用Sobel 算子来计算这幅图的梯度,并画出梯度幅度图(需给出梯度幅度图中所有像素的值) 图片 图片 图片 图片 matlab中值滤波代码 I=[ 1 7 1 8 1 7 1 1 1 1 1 5 1 1 1 1 1 1 5 5 5 1 1 7 1 1 5 5 5 1 8 1 8 1 1 5 1 1 1 1 8 1 1 5 1 1 8 1 1 1 1 5 1 1 1 1 1 7 1 8 1 7 1 1 ]; [M N]=size(I); I1=zeros(M,N); for i=2:M-1 for j=2:N-1 temp=I(i-1:i+1,j-1:j+1); temp=sort(temp); temp=sort(temp'); I1(i,j)=temp(2,2); end end imshow(I,[]); figure,imshow(I1,[]);
通信&信息处理
刘航宇
5年前
0
626
2
2021-03-23
考研英语作文笔记-刘晓燕
摘要本文介绍了考研英语作文中常用的表达方式,包括简单句、并列句、复合句、特殊结构等,并提供了大量例句和写作技巧。关键词:考研英语作文, 刘晓燕笔记, 英语写作技巧, 句型表达, 写作满分文章目录 一、简单句的满分表达 被动 there be句型 比较句型 as...as...和...一样 (原级的比较) the more...the more....越....越.... 并列句满分表达 1、and but 句型 2、not only ....but also...句型 复合句的满分表达 一)主语从句 二)同位语和同位语从句 1、名词作同位语 2、同位语从句 三)定语和定语从句 1、定语的成分 2、定语和定语从句在写作中的使用 3、定语从句的满分表达 四)状语和状语从句 1、什么是状语 2、状语在写作中的使用 3、状语从句的满分表达 ①让步状语从句 ② so...that... 如此...以至于.... ③分词作状语把分词放在句中的主谓之间作为插入语使用 二. 英语的特殊结构的满分表达 1)插入语: 2)双重否定 3)强调句型 4)修辞 一. 比喻 二. 排比 5)虚拟语气 1、if 引导的虚拟语气 6)倒装 1、否定词放句首用倒装 2、so...that...的倒装 3、only+状语放句首用倒装 三、段落:段落的论证方式 1、定义和解释 2、统计和事实(推荐英语2) 3、引用名人名言 一、简单句的满分表达 被动 当汉语中出现我们、人们、大家或有人等人称代词做主语时,都可以写成被动。 被动句型推荐在第一段的最后一句话,引出文章中心时使用,或者是第三段的第一句话,文章总结的时候使用。(使用一次就够了) 举例1:我们应该孝敬父母 parent should be respected by us. superiors are supposed to be respected by their descendants. 单词替换: ①parent----->superiors(父母,长辈,上司)/ the elderly/ senior citizens. ②should----->ought to/ be supposed to(应该做)/ be obliged to(有责任有义务做,带强制的感情色彩) ③we、us和people的替换----->human beings/ the public/ private individuals 写作时要注意单词的准确性!!1 1)我们不应该盲目追星 我们------>teenagers and youngsters. 2)我们应该节约 undergraduates(本科生)、youngsters on campus(大学生) 3)我们应该孝敬父母 children/ kids/ offspring(子孙后代,单复数同形不加s)/ descendants(子孙后代) 4)人们应该讲诚信 businessmen 5)我们应该有自信 all children and adults/ men and women in all walks(各行各业的男男女女们) 6)我们应该关注环境问题 experts and professors 示例2、我们不应该盲目追星 celebrities (名人;明星) should not be pursued by youngsters. not的替换:------never /by no means/ under no circumstances/ fail to(★) 示例3、污染很严重 environmental contamination is though very serious by increasing amount of experts and professors. pollution-----> environmental contamination think------> maintain/ claim/assume/ be of the opinion that/ cling to the perspective that very-----> distinctly /remarkably/ exceedingly/ outstandingly/ strikingly/ extraordinarily [ɪksˈtrɔːdnrɪli] (选三个记忆) serious----> fatal/ grave/ severe/ fearful/ be of great severity there be句型 there exists/seem/remain(都翻译成有) 示例1: 有很多的原因解释我的观点 There exist many reasons to explain my idea. 本句型推荐写在第二段的第一节话引出原因分析的时候使用,或者是第三段的最后一句话喊口号的时候使用。 Many ----a sea of/ a multitude of/ a host of / a train of /an army of 许多、大量 -----immense(巨大的) amounts of -----numerous Reasons—causes/factors/elements Explain—account for /give rise to/contribute to/be responsible for 产生、导致、致使 Idea----outlook/viewpoint 比较句型 as…as…和…一样 (原级的比较) 只要作文中出现形容词或副词的地方都能写出as…as…句型 本句型推荐写在第一段的最后一句话引出文章中心的时候使用,或者是第三段第一句话,文章总结的时候使用。 示例1:她很漂亮 She is as beautiful as a red rose, which managed to take away the breath of a sea of children and adults. 她能成功带走很多人的呼吸。 be动词的替换(不适合被动和现在进行时,此时be作为助动词)------ ①look/taste/sound/feel…所有的感官动词都可以替换be动词 seem、 appear(好像,似乎) ②keep, remain ③become,get ④prove Beautiful----graceful/ elegant/ attractive/ charming/ gorgeous(美丽到极致) 示例2:自信很重要 Confidence proves as important as sunshine, which plays an essential role in the normal growth of all creatures. Important-----vital/crucial/critical/indispensable/significant ------be of great importance ------be of great importance 示例3:过渡捕捞很严重 Sth becomes as grave as AIDS,which has threatened the health of patients or taken away their lives. the more…the more…越…越… 这个句型叫做the+adj/adv比较级+句子,the+adj/adv比较级+句子。(主将从现哟!) the后面加形容词还是副词取决于后面这个句子的谓语动词是系动词还是实义动词,如果谓语是实义动词用副词,如果是系动词用形容词 本句型推荐写在作文的第二段分析原因的时候使用 Eg:文化交流的越频繁,经济发展越迅速 The more frequently cultures are exchanged, the more rapidly Chinese economy will develop. 可数名词永远不能单独使用,如果不确定是不是可数,加the最保险。 例句1:你爬的越高看的越远 (没有特指的一个人用one,没有特指的多个人用those) The higher one ascends , the farther he will overlook. (farther指真实距离的远,further指抽象距离的远) 例句2:你学习的越努力,你越容易取得成功。 (努力:diligent) The more diligent one keeps,the more easily he will achieve glories. 一句话需要动词又没有动词用be动词; keep是系动词后面跟形容词diligent,‘容易’是修饰‘取得’的,‘取得’是实义动词,副词修饰实义动词,使用副词easily。 例句3:越努力,越幸运。(所有人都是) The harder all children and adult remain, the more fortunate they will become. 作业:用the more …the more…句型写为什么做人一个有自信 并列句满分表达 1、and but 句型 And------->likewise/similarly/in the meanwhile/at the same time 都翻译为‘并且’ But-------->conversely/by contrast/On the contrary/ conversely/nevertheless都翻译为‘但是’ 描述图画的分类 1)一幅图 1、一幅图,一个主体,两个动作(主要/次要) 2、一幅图,两个主体,两个动作 2)两幅图 在描述图画的时候记住:除非有明显的过去时间,描述图画都用现在进行时,因为现在进行时描述更生动。 描述图画----一般现在时 描述图表----一般过去 In the picture, the goalkeeper is imagining himself exceedingly small. On the contrary, the player is assuming his rival(对手)as big as a hill. 在第一幅图画当中,温室里的花朵生长的很健康,但是在第二幅图画中,这朵花就凋零了。 In the former picture, the flower in the greenhouse is growing healthily. Conversely, in the latter one, it is dying. And but句型推荐写在作文的第一段,描述一幅图两个主体两个动作的时候使用,或者是两幅图的时候使用。 替换Picture----> picture/cartoon/drawing/painting/caricature/photograph 作业:描述追星这幅作文 2、not only …but also…句型 本句型推荐写在作文的第二段,分析原因的时候使用 例句1:养宠物的好处 养宠物能减少老人的孤单 Raising pets can reduce the loneliness of senior citizens. 养宠物能培养小孩子的善良 Raising pets can cultivate the kindness of kids. 合并: Raising pets not only can educe the loneliness of senior citizens but also can cultivate the kindness of kids. 例句2:为什么应该孝敬父母 孝敬父母不但是一个中华民族的传统美德,而且是子女的法定义务。 Supporting the elderly not only keeps a Chinese conventional virtue but also proves the legal responsibility of their offspring. 例句3:合作/自信/乐观/文化交流 不但能够使我们交到更多的朋友,而且还能使我们取得更大的成功。 Enable sb to do sth/ have sb do sth 使某人做某事 成功、成就、荣耀:glories 表扬、嘉奖、荣誉、荣誉、成就:credits Cooperation not only enables all children and adults to make more intimate friends but also has them achieve greater credits. 复合句的满分表达 一)主语从句 l (That you never fail to fascinate me) is obvious. It is obvious (that you never fail to fascinate me) 主语从句的满分表达就是把主语从句放到句末去,加it做形式主语。 主语从句常见的满分表达是it…that… It proves common knowledge that…显而易见,总所周知 It proves self-evident that… 显而易见,总所周知 It seems beyond dispute that…超越了争论---->显而易见,总所周知 It is universally acknowledged that…显而易见,总所周知 It has been widely accepted that… 显而易见,总所周知 It keeps my perspective that= i think that… 我认为 (选两个记忆----大作文写一个小作文写一个) 可以写在作文中任何一句话的前面来拉长句子 本句型推荐写在大作文第一段第一句话的前面,用来引出推荐的图画或图表。 更好的主语从句的变体是把it写成what,在that前面加is Eg: What proves common knowledge is that… 已经变成了两个从句:1、what引导的主语从句 2、that引导的宾语从句 二)同位语和同位语从句 1、名词作同位语 只要在作文中见到名词,都可以在后面加一个名词,作为它的同位语出现。 大作文最多出现两次名词作同位语。 My boyfriend, a rich businessman, really has no much time to accompany me, an attractive girl. 一个男人把贝克汉姆的名字写在他的脸上 A man,a soccer fan, is writing the name, a symbol of someone, of Beckham , an esteemed sportsman, on his face, some part of the body. 2、同位语从句 1、她长着一双大眼睛这个事实表明她是一个美女; The evidence( that she has a pair of big eyes )manifests(表明) (that she keeps a beauty.) 同位语从句+宾语从句 2、很多女生都已经穿上了漂亮的花裙子,这个事实表明夏天已经来了。 The evidence that a host of girls have wore beautiful colorful skirts manifests that summer is around the corner. …样的事实表明了… 本句型推荐写在作文第二段分析原因的时候使用,它的模板是the evidence that + 一个表示原因的简单句+ manifests that +文章的中心句。 为什么说污染很严重? 我们再也见不到明亮的星星和皎洁的月光了,这个事实表明污染变得越来越严重了。 The evidence that bright stars and pure moonlights fail to be detected manifests that environment contamination is becoming increasing fatal. 例句:国产车的价格变得越来越低了,这个事实表明国产车在中国更受到欢迎 他们能够享受到一个更高质量的生活水平,这个事实表明,更多的农民涌入大城市。 The evidence that farmers can enjoy high quality life, manifest that most of them would like to swarm into big cities. 三)定语和定语从句 1、定语的成分 ①形容词修饰名词 ②介词短语修饰名词 ③名词修饰名词 ④非谓语动词修饰名词 ⑤从句 2、定语和定语从句在写作中的使用 只要在作文中见到名词,都可以给它加一个定语的成分,把句子拉长。但是在第一段描述图画的时候只要见到名词通常都要加定语,使图画的描述显得很生动。 一个…美国小女孩正穿着少数民族的传统服饰 An American girl young as well as graceful is wearing Chinese conventional costume which keeps pervasive(遍布的,普遍的)in the south of China. Immense amounts of children and adults sitting in seperate rooms are surfing on the internet. 描述图画的万能定语: 1、好的: 用as well as连接两个形容词:cute,lovely,little; graceful elegant; young; Enthusiastic,passionate; confident,energetic; Aggressive ambitious Who looks distinctly impressive to readers(给读者留下深刻印象的—>万能定从) 2、坏的: Fat, cruel, ugly Negative, dispassioned 消极悲观的 Terrible, disgusting,disgraceful 不好的 Who looks rather less impressive to readers. 3、定语从句的满分表达 他是一个色狼是显而易见的 He looks like a lady-killer, which has been widely accepted. 定语从句的满分表达就是which可以引导修饰前面整个句子的定语从句,和前面的句子用逗号隔开。 定语从句的满分表达可以写在作文中任何一个陈述句后面,但是推荐写在中文第二段某个比较短的原因后面用来拉长句子。 1)which leaves us a deep impression 2)which provokes the public’s widespread concerns. 3)which brings up the unnecessary/unexpected trouble 4)which gives rise to dreadful consequences 国产车的价格变得越低,越多的人愿意买国产车 The lower the price of cars made in China becomes, the more Chinese would like to purchase them, which leaves businessmen a deep impression. 四)状语和状语从句 1、什么是状语 只要在句子中见到一下的一坨东西就是状语:adv,时间,地点,原因,条件,让步,方式,结果,目的,伴随,比较状语 2、状语在写作中的使用 中文中的任何一句话都可以加给它加一个状语的成分把句子拉长,但是在第一段描述图画或图表的时候一定要加状语,使图画或图表的描述更完整。 描述图画的万能状语 In the center of the vivid picture. 描述原因的万能状语 推荐写在那个原因的中间作为插入语使用 1、as every one can see it. 显而易见,总所周知 2、With the rapid advance of science and technology. 3、In our contemporary society目前 4、In the general routine of everyday living在我们日常生活中 3、状语从句的满分表达 ①让步状语从句 Although Although引导的让步状语从句可以写在作文中任何一句话的旁边,但是推荐写在第二段分析原因的时候使用。 第二段原因分析句型已经讲了:the more…the more…/not only…but also…/同位语从句/although引导的让步状语从句 第二段第一句话用there be 引出原因分析 为什么不应该盲目追星? 例句:盲目追星会影响青少年的身心健康 影响:exert great influence on Pursuing celebrities blindly might exert great influence on physical and mental health of youngsters on campus although their singing sounds touching. 发展中国家的人变得越来越富有了 Private individuals from developing nations are becoming increasingly wealthy although Although 引导的万能状语是: Although many people fail to pay attention the issue. 虽然很多人还没有关注到这个问题 Pay attention to 的替换(记两个) 关注,重视: Place great emphasis on; Attach great importance to; Shed light on; Pour attention into problem替换:issue phenomenon现象 subject话题 the current situation现状 ② so…that… 如此…以至于… 只要作文中出现形容词或副词的地方,都能写成so…that…句型,但是推荐写在第一段的最后一句话引出文章中心的时候使用或者是第三段的第一句话文章总结的时候使用。 已经推荐过 被动,as … as, so…that…可以写在第一段最后一句话和第三段第一句话 生命如此短暂,以至于如何的度过都是一种浪费 Life proves so short that it is a waste how to spend it. Sth keeps so vital that the problem should have been brought into the limelight. 带到聚光灯下 Sth becomes so fatal that the problem should have been brought into the limelight.引起我们关注 ③分词作状语把分词放在句中的主谓之间作为插入语使用 I hate you, i will kill you.(x) Hating you , i will kill you.(分词作状语) I, hating you, will kill you.(★) 本句型推荐写在作文的第一段,描述一幅图一个主体两个动作的时候使用。 它的模板是: sb(定语),doing sth1.(次要)+定/状,is doing sth2(主要)+定/状 A boy is smiling, a boy is rushing to the destination ------> A boy confident as well as vigorous(充满活力), smiling in the center of the vivid cartoon, is rushing to the destination which becomes a new start. 文化火锅 The hotpot delicious as well as health, smoking in the center of the vivid cartoon, is full of cultures from different nation in the world. 二. 英语的特殊结构的满分表达 1)插入语: 以下都是万能的插入语,可以插在任何一句话的主谓之间 本句型推荐写在第一段的最后一句话,第二段的第一句话或者是第三段第一句话的主谓之间 Needless to say显而易见,总所周知 In my judgement To my knowledge Exactly speaking To tell the truth To put it in another way换句话说 I suppose我认为 As i see it==in my opinion As we all know 2)双重否定 Never fail to 从来没失败过…---->没有意思表示强调(谓语),可以写在任何一个肯定句的主谓之间 双重否定推荐写在:同插入语(第一段的最后一句话,第二段的第一句话或者是第三段第一句话)用了双重否定就别用插入语了 3)强调句型 It is…that… 唯一不能强调谓语 Eg: I love the girl in a restaurant 有很多的原因解释这种现象: There exist numerous factors here to account for the phenomenon. ---->It is to account for the phenomenon that there exist numerous factors here . 作文中所有的句子都可以写成强调句型,但是推荐写在:同上(第一段的最后一句话,第二段的第一句话或者是第三段第一句话) 4)修辞 一. 比喻 Confidence is to humans as water is to fish. 自信对于人类来说就相当于水对于鱼来说一样 sth很重要。(confident可替换) Sth1 is to 人 Sth proves to 人 as solid foundation is to high skyscrapers.就像坚固的地基对高楼大厦同样重要 As the foundation is to high skyscrapers. As mothers are to little babies. As the infinite blue sky is to flaying eagles. 就像剧烈的病痛对于晚期的病人同样严重 Sth proves to 人 as intensive pain is to incurably ill patients as horrible nightmares are to innocent kids. 比如:就像经济危机对于一个国家的经济发展一样严重。 xxx很严重 本句型推荐写在第一段的最后一句话引出文章中心的时候使用或者是第三段第一句话文章总结的时候时候。 这个图画告诉我们一个道理就是城镇化进程对一个国家就像坚固的地基对高楼大厦同样重要 二. 排比 总之我们应该采取措施 Action is supposed to be adopted quickly, effective and actively It is quickly, effective and actively that action is supposed to be adopted 定语从句的排比: 本句型推荐写在第三段最后一句话喊口号的时候使用(罗斯福那句话) 5)虚拟语气 1、if 引导的虚拟语气 如果你要远行,我会掩上所有的窗户 If you travel to a long distance , i will close all my windows. —>if you traveled to a long distance , i would close all my windows. 本句型推荐写在作文第二段最后一句话,反面论证的时候使用,或者是第三段的第一句话文章总结的时候使用。 如果每个人都沉迷于网络 abandon oneself to doing sth沉迷于做某事 If every one of teenager and youngster abandoned himself to surfing on the internet, he would pay a heavy price in the near future(万能). 单复数不一致问题 (every用单数) Be indulged in 沉溺(迷)于做某事 Be addicted to abandon oneself to doing sth If every university student were indulged in surfing on the internet, it would be hard for them to graduate smoothly. It is imperative/ essential/ urgent that… …很紧急,很重要 本句型推荐写在作文第三段具体措施的时候使用。 让父母采取措施(很多人都会写政府) 从小教育孩子支持国货是很重要的 should+V原表示虚拟 It is urgent that kids should be educated/inspired to support Chinese goods 6)倒装 把一句话写成一般疑问句的形式 1、否定词放句首用倒装 ①我从来不是一个彪悍外向的女人。 I am never a woman tough and outgoing. Never am i a woman tough and outgoing. ②他不但看起来很贫穷,而且事实上他的内心也很贫穷 He not only looks poor but also in fact is poor in his mind. Not only does he looks poor but also in fact is poor in his mind. ③Respecting parents keeps not only a Chinese conventional virtue but also proves the duty of their offspring. —>not only does respecting parents keep a Chinese conventional virtue but also proves the duty of their offspring. ④Confidence not only can make you find more happiness in your life but also can have you make more friends. —>not only can confidence make you find more happiness in your life but also can have you make more friends. 2、so…that…的倒装 把so引导的部分放句首用倒装 我妈妈很善 My ma is so kind that she will never kill an ant. —>So kind is my mother that she will never kill an ant. 我很开心 I am so delighted that i cannot help laughing at midnight. So delight am i that i cannot help laughing at midnight Sth keeps so significant/fearful that the issue should have been brought into the limelight. —> so fearful/significant does sth keep that the issue should have been brought into the limelight. 3、only+状语放句首用倒装 只有通过采取这些措施,这个问题才能得到改善。 Only by taking those action can the issue be improvement a lot. 只有这个问题得到改善,人们才能安居乐业 [Only when the issue can be improved a lot ]can the common lead a happy and comfortable life. 三、段落:段落的论证方式 段落论证方式也就是写作无话可说的时候怎么办。 1、定义和解释 什么是追星? Pursuing stars is a social trend which means that we listen to their songs, we buy their CDs and we imitate their hairstyle when we have passion for them. (排比主语句式最好一致) 什么叫孝敬父母? 好事----一个中华民族传统美德 坏事----全世界普遍存在的问题/话题 Supporting the elderly is a Chinese conventional virtue(传统美德)which means that we cook for them, we buy gift for them and we wash feet for them when they become gradually old. 定义和解释用在第一个原因分析 A server global issue An active/ negative mentality心态 Sth1 is sth2 a Chinese tradition virtue + which means that+三个并列简单句 A hot social topic (主语一致) A social pervasive trend普遍趋势 when引导的时间状语从句 污染是什么? 2、统计和事实(推荐英语2) In light of=on the basis of=in line with根据;按照 Lastest=current=proximate 最新的;最近的 Statistics/survey/data/data统计 In light of lastest statistics by the Chinese academy of social science(中科院),an increasing amount of us harbor the idea that… By the department of social science in Peking university社会科学学院 harbor the idea that=think 持…观点 A recent study revealed the shocking /surprising/ delightful fact that…+中心句 3、引用名人名言 Once, there seemed a writer who has gained great reputation in Japan stating that: 推荐句型 ①比喻 ②as…as ③the more…the more句型 ④so…that… ⑤if虚拟语气
我的随笔
刘航宇
5年前
0
2,266
3
2021-03-20
二元函数的极值及其求法
摘要本文介绍了二元函数极值的求法,包括求梯度、判断极值点、使用判别公式以及处理有约束的多元函数极值问题。关键词:二元函数, 极值, 梯度, 驻点, 拉格朗日乘数法1.求该二元函数的梯度,并令其等于零,求出所有驻点(X0,Y0)。 即解方程组默认图片 2.判别驻点是否为极值点。判别方法如下:对原函数求二阶导,并将该驻点代入求得A,B,C.并根据判别公式判断该驻点是否为极值点。 默认图片 3.(1) 如果A>0,且AC-B^2>0,则f(x,y)在(x0,y0)处取极小值; (2) 如果A<0,且AC-B^2>0,则f(x,y)在(x0,y0)处取极大值; (3) 如果AC-B^2<0,则f(x,y)在(x0,y0)处不取极值. 4.对于有约束的多元函数极值,最值问题,通常使用拉格朗日乘数法或者代入法(降低未知参数个数)。
我的随笔
刘航宇
5年前
0
2,887
4
2021-03-18
马尔科夫链讲解(Markov)
摘要马尔可夫链是一种具有马尔科夫性质的离散事件随机过程,通过状态转移矩阵计算转移概率。其核心是状态转移矩阵,可用于预测系统状态变化。满足细致平稳条件的马尔可夫链具有平稳分布。关键词:马尔可夫链, PageRank, 状态转移矩阵, 马尔科夫模型, 细致平衡条件说到马尔可夫链,在机器学习界真是无人不知,无人不晓。谷歌用于确定搜索结果顺序的算法,称为PageRank,就是一种马尔可夫链。在卷积网络出现之前,HMM马尔可夫模型也是语音处理的常用方法。到底什么才是马尔可夫链,之前看了几个介绍特别生动,这里总结一下: 马尔可夫链 马尔科夫链是指数学中具有马尔科夫性质的离散事件随机过程。在其每一步中,系统根据概率分布可以从一个状态变到另一个状态,也可以保持当前状态。状态的改变叫做转移,与不同的状态改变相关的概率叫做转移概率。 下图中有两种状态:A和B。如果我们在A,接下来可以过渡到B或留在A。如果我们在B,可以过渡到A或者留在B。在这张图中,从任意状态到任意状态的转移概率是0.5。 默认图片 真正的建模工作者不会总是就画一张马尔科夫链图。 相反,他们会使用“转移矩阵”来计算转移概率。状态空间中的每个状态都会出现在表格中的一列或者一行中。矩阵中的每个单元格都告诉你从行状态转换到列状态的概率。因此,在矩阵中,单元格做的工作和图中的箭头所示是一样。在状态转移矩阵中,行和列都是可能的所有状态,对应位置就是已知行状态,转移到列状态的概率。 默认图片 如果状态空间添加了一个状态,我们将添加一行和一列,向每个现有的列和行添加一个单元格。 这意味着当我们向马尔可夫链添加状态时,单元格的数量会呈二次方增长。因此,转换矩阵就起到了很大的作用(除非你想把法尔科夫链图画的跟丛林一样)。 状态转移矩阵 从上面可以看出,整个马尔可夫链中的核心就是状态转移矩阵。以股市模型为例,假设初始状态为,然后算之后的状态。 def markov(): init_array = np.array([0.1, 0.2, 0.7]) transfer_matrix = np.array([[0.9, 0.075, 0.025], [0.15, 0.8, 0.05], [0.25, 0.25, 0.5]]) restmp = init_array for i in range(25): res = np.dot(restmp, transfer_matrix) print i, "\t", res restmp = res markov() 输出结果: 0 [ 0.295 0.3425 0.3625] 1 [ 0.4075 0.38675 0.20575] 2 [ 0.4762 0.3914 0.1324] 3 [ 0.52039 0.381935 0.097675] 4 [ 0.55006 0.368996 0.080944] 5 [ 0.5706394 0.3566873 0.0726733] 6 [ 0.58524688 0.34631612 0.068437 ] 7 [ 0.59577886 0.33805566 0.06616548] 8 [ 0.60345069 0.33166931 0.06487999] 9 [ 0.60907602 0.32681425 0.06410973] 10 [ 0.61321799 0.32315953 0.06362248] 11 [ 0.61627574 0.3204246 0.06329967] 12 [ 0.61853677 0.31838527 0.06307796] 13 [ 0.62021037 0.31686797 0.06292166] 14 [ 0.62144995 0.31574057 0.06280949] 15 [ 0.62236841 0.31490357 0.06272802] 16 [ 0.62304911 0.31428249 0.0626684 ] 17 [ 0.62355367 0.31382178 0.06262455] 18 [ 0.62392771 0.31348008 0.06259221] 19 [ 0.624205 0.3132267 0.0625683] 20 [ 0.62441058 0.31303881 0.06255061] 21 [ 0.624563 0.31289949 0.06253751] 22 [ 0.624676 0.3127962 0.0625278] 23 [ 0.62475978 0.31271961 0.06252061] 24 [ 0.6248219 0.31266282 0.06251528]从第18次开始,状态就开始收敛至。 如果我们换一个初始状态,比如,继续运行上面的代码,只是将init_array变一下,最后结果为: 0 [ 0.35 0.38 0.27] 1 [ 0.4395 0.39775 0.16275] 2 [ 0.4959 0.39185 0.11225] 3 [ 0.53315 0.378735 0.088115] 4 [ 0.558674 0.365003 0.076323] 5 [ 0.5766378 0.3529837 0.0703785] 6 [ 0.5895162 0.34322942 0.06725438] 7 [ 0.59886259 0.33561085 0.06552657] 8 [ 0.6056996 0.32978501 0.06451539] 9 [ 0.61072624 0.32538433 0.06388944] 10 [ 0.61443362 0.32208429 0.06348209] 11 [ 0.61717343 0.31962047 0.0632061 ] 12 [ 0.61920068 0.31778591 0.06301341] 13 [ 0.62070185 0.31642213 0.06287602] 14 [ 0.62181399 0.31540935 0.06277666] 15 [ 0.62263816 0.31465769 0.06270415] 16 [ 0.62324903 0.31410005 0.06265091] 17 [ 0.62370187 0.31368645 0.06261168] 18 [ 0.62403757 0.31337972 0.06258271] 19 [ 0.62428645 0.31315227 0.06256128] 20 [ 0.62447096 0.31298362 0.06254542] 21 [ 0.62460776 0.31285857 0.06253366] 22 [ 0.62470919 0.31276586 0.06252495] 23 [ 0.62478439 0.31269711 0.0625185 ] 24 [ 0.62484014 0.31264614 0.06251372]到第18次的时候,又收敛到了!这个转移矩阵就厉害了。不管我们的初始状态是什么样子的,只要状态转移矩阵不发生变化,当时,最终状态始终会收敛到一个固定值。 马尔可夫链细致平稳条件 首先,马尔科夫链要能收敛,需要满足以下条件: 可能的状态数是有限的。 状态间的转移概率需要固定不变。 从任意状态能够转变到任意状态。 不能是简单的循环,例如全是从x到y再从y到x。 由前面的例子我们不难看出,当与的n次幂相乘以后,发现得到的向量都会收敛到一个稳定值,而且此稳定值与初始向量 无关!那么所有的转移矩阵都有这种现象嘛?或者说满足什么样的条件的转移矩阵会有这种现象? 细致平衡条件(Detailed Balance Condition):给定一个马尔科夫链,分布 和概率转移矩阵,如果下面等式成立: 默认图片 则此马尔科夫链具有一个平稳分布(Stationary Distribution)。
通信&信息处理
刘航宇
5年前
0
1,031
1
2021-03-14
liunx系统创建并运行实战一个c程序及常用指令指导
摘要本文介绍了在Linux系统下创建并运行C程序的方法,包括进入超级管理员模式、使用Vim编辑器编写代码、使用gcc编译器编译代码、运行编译后的程序等步骤。同时,还列举了Linux系统中的常用指令和vi编辑器的使用方法。关键词:Linux, C程序, 编程实战, 命令指导, 系统管理{mtitle}liunx系统运行实战一个c程序{/mtitle} 学习liunx系统有利于嵌入式、云服务器等学习。 下面我们实战创建并运行一个三角图形c程序 首先 su rooot 进入超级管理员模式 如果你没有超级管理员账号,想搞一个可以看本站嵌入式其他帖子创建永久超级管理员账号办法,或者按课本上代码临时进入root模式 然后输入 ls 指令查看目录 然后输入 cd 你选的目录名 创建c程序 vim test.c 键盘“a”键可以直接进入编辑模式 输入代码例如: #include <stdio.h> int main() { int i,j,n; printf("input ranks n\n"); scanf("%d",&n); for(i=0;i<n;i++) { for(j=0;j<n-i-1;j++) printf(" "); for(j=0;j<=i;j++) printf("*"); printf("\n"); } return 0; }或者更换 for(i=0;i<n;i++) { for(j=0;j<n-i-1;j++) printf(" "); for(j=n-i-1;j<n;j++) printf("*"); printf("\n"); }输入完C代码后,记得“ESC”键切换,输入“:wq”保存退出 然后gcc test.c 打完gcc test.c编译完C源文件。然后就可以看见a.out的文件。一般linux系统就默认为a.out为编译完的文件。现在运行a.out文件。在a.out文件的目录下打开终端并输入 ./a.out 就是运行文件了。 示例图解: 图片 对于回文数可以参考下面代码,我们不妨先取倒序,将本数先输出,再输出倒序数则生成回文数。要让计算的结果倒序输出.现总结一下思路: 1.如果要把一个数倒序输出,即对10求模,可以得到尾数; 2.然后将这个数除以10;这样个位就被舍去;然后如此循环即可 3.直到求模结果为0;证明这个数已经求到个位; #include <stdio.h> int main() { int h; printf("Enter the number\n"); scanf("%d",&h); if(h==0) { printf("%d",h); } printf("%d",h); while(h>0) { printf("%d",h%10); h=h/10; } return 0; } 参考图例: 回文数图片 {mtitle}Linux基本命令{/mtitle} uname -a 查看内核版本 ls -al 显示所有文件的属性 pwd 显示当前路径 cd - 返回上一次目录 cd ~ 返回主目录 date s 设置时间、日期 cal 显示日历 cal 2006 bc 计算器具 man & info 帮助手册 locale 显示当前字体 locale -a 所有可用字体 /etc/sysconfig/i18n设置文件 LANG=en 使用英文字体 sync 将数据同步写入硬盘 shutdonw -h now & half & poweroff 关机 reboot 重启 startx & init 5 进入图形介面 /work & ?work 向上、下查找文档内容 chgrp 改变档案群组 chgrp testing install.log chown 改变所属人 chown root:root install.log chmod 改变属性 chmod 777 install.log read=4 write=2 execute=1 cp 复制 cp filename rm 删除文件 rm -rf filename 强制删除文件 rmdir 删除文件夹 mv 移动 mv 123.txt 222.txt 重命名 mkdir 创建文件夹 touch 创建文件 更新当前时间 cat 由第一行开始显示 cat |more 分页 nl 在内容前加行号 more & less 一面一面翻动 head -n filename 显示第N行内容 tail -n filename 显示后N行内容 od 显示非纯文档 df -h 显示分区空间 du 显示目录或文件的大小 fdisk 分区设置 fdisk -l /dev/hda 显示硬盘分区状态 mkfs 建立各种文件系统 mkfs -t ext3 /dev/ram15 fsck 检查和修复LINUX档案 ln 硬链接 ln -s 软件链接 whereis 查找命令 locate 查找 find 查找 find / -name "." which 查看工具 whoami 显示当前用户 gcc -v 查看GCC版本 chattr +i filename 禁止删除 chattr -i filename 取消禁止 lsattr 显示隐藏档属性 updatedb 更新资料库 mke2fs 格式化 mkfs -t ext3 dd if=/etc/passwd of=/tmp/passwd.bak 备份 mount 列出系统所有的分区 mount -t iso9660 /dev/cdrom /mnt/cdrom 挂载光盘 mount -t vfat /dev/fd0 /mnt/floppy 挂载软盘 mount -t vfat -o iocharset=utf8,umask=000 /dev/hda2 /mnt/hda2 挂载fat32分区 mount -t ntfs -o nls=utf8,umask=000 /dev/hda3 /mnt/hda3 挂载ntfs分区 umount /mnt/hda3 缷载 ifconfig 显示或设置网络设备 service network restart 重启网卡 ifdown eth0 关闭网卡 ifup eth0 开启网卡 clear 清屏 history 历史记录 !55 执行第55个指令 stty 设置终端 stty -a fdisk /mbr 删除GRUB at 僅進行一次的工作排程 crontab 循環執行的例行性命令 [e]编辑,[l]显示,[r]删除任务 & 后台运行程序 tar -zxvf 123.tar.gz & --------->后台运行 jobs 观看后台暂停的程序 jobs -l fg 将后台程序调到前台 fg n ------>n是数字,可以指定进行那个程序 bg 让工作在后台运行 kill 结束进程 kill -9 PID [9]强制结束,[15]正常结束,[l]列出可用的kill信号 ps aux 查看后台程序 top 查看后台程序 top -d 2 每两秒更新一次 top -d 2 -p10604 观看某个PID top -b -n 2 > /tmp/top.txt ----->將 top 的資訊進行 2 次,然後將結果輸出到 /tmp/top.txt pstree 以树状图显示程序 [A]以 ASCII 來連接, [u]列出PID, [p]列出帐号 killall 要刪除某個服務 killall -9 httpd free 显示内存状态 free -m -------->以M为单位显示 uptime 显示目前系统开机时间 netstat 显示网络状态 netstat -tulnp------>找出目前系統上已在監聽的網路連線及其 PID dmesg 显示开机信息 demsg | more nice 设置优先权 nice -n -5 vi & ----->用 root 給一個 nice 植為 -5 ,用於執行 vi renice 调整已存在优先权 runlevel 显示目前的runlevel depmod 分析可载入模块的相依性 lsmod 显示已载入系统的模块 modinfo 显示kernel模块的信息 insmod 载入模块 modprobe 自动处理可载入模块 rmmod 删除模块 chkconfig 检查,设置系统的各种服务 chkconfig --list ----->列出各项服务状态 ntsysv 设置系统的各种服务 cpio 备份文件 压缩命令: *.Z compress 程式壓縮的檔案; *.bz2 bzip2 程式壓縮的檔案; *.gz gzip 程式壓縮的檔案; *.tar tar 程式打包的資料,並沒有壓縮過; *.tar.gz tar 程式打包的檔案,其中並且經過 gzip 的壓縮 compress filename 压缩文件 加[-d]解压 uncompress gzip filename 压缩 加[-d]解压 zcat 123.gz 查看压缩文件内容 bzip2 -z filename 压缩 加[-d]解压 bzcat filename.bz2 查看压缩文件内容 tar -cvf /home/123.tar /etc 打包,不压缩 tar -xvf 123.tar 解开包 tar -zxvf /home/123.tar.gz 以gzip解压 tar -jxvf /home/123.tar.bz2 以bzip2解压 tar -ztvf /tmp/etc.tar.gz 查看tar内容 cpio -covB > [file|device] 份份 cpio -icduv < [file|device] 还原 深圳-广州-郑州-长沙嵌入式系统实训,凡通过本帖添加咨询报名学习可免费赠送学习现金卷及学习资料一份。详情联系郭老师QQ754634522 vi一般用法 一般模式 编辑模式 指令模式 h 左 a,i,r,o,A,I,R,O :w 保存 j 下 进入编辑模式 :w! 强制保存 k 上 dd 删除光标当前行 :q! 不保存离开 l 右 ndd 删除n行 :wq! 保存后离开 0 移动到行首 yy 复制当前行 :e! 还原原始档 $ 移动到行尾 nyy 复制n行 :w filename 另存为 H 屏幕最上 p,P 粘贴 :set nu 设置行号 M 屏幕中央 u 撤消 :set nonu 取消行号 L 屏幕最下 [Ctrl]+r 重做上一个动作 ZZ 保存离开 G 档案最后一行 [ctrl]+z 暂停退出 :set nohlsearch 永久地关闭高亮显示 /work 向下搜索 :sp 同时打开两个文档 ?work 向上搜索 [Ctrl]+w 两个文档设换 gg 移动到档案第一行 :nohlsearch 暂时关闭高亮显示 认识SHELL alias 显示当前所有的命令别名 alias lm="ls -al" 命令别名 unalias lm 取消命令别名 type 类似which exprot 设置或显示环境变量 exprot PATH="$PATH":/sbin 添加/sbin入PATH路径 echo $PATH 显示PATH路径 bash 进入子程序 name=yang 设定变量 unset name 取消变量 echo $name 显示变量的内容 myname="$name its me" & myname='$name its me' 单引号时$name失去变量内容
嵌入式&系统
# 嵌入式
刘航宇
5年前
2
543
2
2021-03-11
使用虚拟机提示“此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态”
摘要解决虚拟机提示“此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态”的方法是进入BIOS设置,将Intel Virtualization Technology从disabled改为enabled,然后重启主机。关键词:虚拟机, Intel VT-x, BIOS设置, 虚拟化, 解决方法如果虚拟机的时候遇到过“此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态”的问题,其实出现这种情况是bios中虚拟化VT-x没有关闭,具体怎么解决问题的呢?下面看操作 图片 弹窗的提示信息如下: 已将该虚拟机配置为使用 64 位客户机操作系统。但是,无法执行 64 位操作。 此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态。 如果已在 BIOS/固件设置中禁用 Intel VT-x,或主机自更改此设置后从未重新启动,则 Intel VT-x 可能被禁用。 (1) 确认 BIOS/固件设置中启用了 Intel VT-x 并禁用了“可信执行”。 (2) 如果这两项 BIOS/固件设置有一项已更改,请重新启动主机。 (3) 如果您在安装 VMware Workstation 之后从未重新启动主机,请重新启动。 (4) 将主机的 BIOS/固件更新至最新版本。 解决方法 看上面的提示 也就很好解决了:直接修改BIOS设置即可。 以下以个人映泰H61主板为例: 1、关机,开机,在启动时,按Delete进入 BIOS 设置页面(不同主板进入BIOS快捷键不同,可以通过网络查询); 2、选择Advanced,再选择CPU Configuration并点击enter建进入该功能,在新功能中选择Intel (R) Virtualization Technology ,此时该选项应该是disabled(关闭)的; 图片 3、将disabled(关闭)改为 enabled(开启); 图片 4、保存设置,点击F10,保存后退出,重启即可。 图片 以上就是使用虚拟机提示“此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态”的解决方法,大家可以试下。
嵌入式&系统
刘航宇
5年前
0
1,016
1
2021-03-11
[刘晓燕]作文笔记
摘要本文概述了考研英语写作的概述、评分原则、满分表达和练习。强调语言准确性、结构逻辑性和内容的重要性,并提供了一些写作技巧和句型。关键词:考研英语写作, 写作技巧, 评分原则, 语法结构, 表达练习第一节概述 一、写作概述 大作文: 图画、图表 18行,用时25min 小作文: 应用文:私人书信、公务书信、告示。 10行左右,包含落款等 做题时间顺序及分配: 1.写作40min 2.阅读90min 3.新题型英语二10min,英语一15min 4.翻译20min 5.完形15min 建议不要检查纠结。 二、评分原则和方法 语言第一 原则一:书写工整,卷面整洁,字迹清晰 原则二:语言第一:单词(背单词)语法正确、准确多遍 离考前3个月都来的及 结构第二: 1)总分总 2)写作中只要上下句有逻辑关系,必须用逻辑关系词,代词代替名词 内容第三: 内容一点也不重要 三、考研中相关问题 1.语域问题 a 缩写词不正式 b 泛指的不定代词you,在正式文体中写成one you never know what measures the president will take. c 正式问题的引导词that不可省略 d 插入语使句子更正式 第二节 写作满分表达和练习 一) 简单句 我们应该孝敬父母 We should respect our parents. 被动 我们,我,你们等人称代词做主语可换被动 Parents should be respect by us. 父母长辈可替换: Parents Superiors The elderly Senior citizens 应该 Should Ought to Be supposed to Be obllged to Us替换 We us peope: Human beings Private individuals The folks masses 孩子 children kids descendant 年轻人 Youngsters and teenagers Youngsters on campus Undergraduates 专家教授 Experts and professors All children and adults Men and women in all walks 各行各业的男男女女们 Customers 我们不应该盲目追星 Superstars ought not to be pursued blindly by teenagers and youngsters. Not Never By no means Under no circumstances Fail to 污染很严重 The pollution is very serious. 升级: Pollution is thought very serious by an increasing number of experts and professors. Think替换 Hold argue contend assume presume insist maintain assert claim 认为 be of the opinion that have been convinced that cling to the perspective that 非常very替换 Pretty;quite;more than 本句型推荐第一段最后一句话,引出文章中心!或者第三段第一句话,文章总结使用。 二) 并列句 三) 复合句 四) 英语的特殊结构 Idea替换 Point viewpoint Outlook Perspective Argument There is strong evidence to show that… 有确凿的证据表明 There is a growing worldwide awareness around the world that… =more and more people think that… 2比较结构 1) As…as…作文出现adj or adv都可考虑as…as…句型,推荐第一段最后一句,引出文章中心,或者第三段文章总结使用。 Liu is very beautiful Liu is as beautiful as a white lily,which manages to (catch the eyes抓住眼睛) of a host of teenagers and youngsters. Be动词替换, look、smell、taste、feel sound、 seem、appear、prove. Become get Keep remain Beautiful替换 Attractive;granceful;charming;elegant;gorgeous 自信很重要 Confidence keeps as important as air and water. Which plays a key role in the normal growth of all creatures in the world.
我的随笔
刘航宇
5年前
1
823
3
2021-03-10
linux无法进入超管模式root用户密码错误解决方法
摘要Linux系统未设置root密码导致无法进入超管模式时,可使用`sudo passwd root`命令设置新密码,然后使用`su root`切换至root用户。关键词:linux, root用户, 密码错误, su命令, passwd一、问题的原因 问题:输入命令 su root ,输入密码怎么输入都不正确 原因:因为刚安装好的Linux系统是没有给root设置密码的 图片 二、解决方法 输入以下命令 sudo passwd root [sudo] password for sam(用户名): 输入当前登陆liunx用户名的密码 Enter new UNIX password: 输入新的密码并确认,此时的密码就是root新密码 Retype new UNIX password: 再次确认root新密码 弹出:passwd: password updated successfully(已成功更新密码) 图片 进入root权限 su root 切换到普通用户,如自己配置的用户名为sam su sam
嵌入式&系统
刘航宇
5年前
0
549
5
2021-03-10
超详细win系统虚拟机安装liunx系统方法
摘要本文详细介绍了在Windows系统下使用VMware软件安装Linux系统的步骤,包括软件准备、VMware安装、Linux系统安装等,并提供了下载链接和安装注意事项。关键词:win系统虚拟机, Linux系统安装, VMware软件, Ubuntu系统, 虚拟机安装教程前言: Linux,全称GNU/Linux,是一种免费使用和自由传播的类UNIX操作系统,其内核由林纳斯·本纳第克特·托瓦兹于1991年10月5日首次发布,它主要受到Minix和Unix思想的启发,是一个基于POSIX的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的Unix工具软件、应用程序和网络协议。它支持32位和64位硬件。Linux继承了Unix以网络为核心的设计思想,是一个性能稳定的多用户网络操作系统。Linux有上百种不同的发行版,如基于社区开发的debian、archlinux,和基于商业开发的Red Hat Enterprise Linux、SUSE、Oracle Linux等。 如果初学,建议用VMWARE方式,或者CYGWIN,等熟练后再装双系统。 双系统的方式速度快,适合做研发。 同时虚拟机支持win下用linux系统,不必开关机等麻烦事项,缺点就是慢。 一、软件准备。 由于课本资源老旧,兼容性不佳,可能有的win10安装后无法打开,建议用我下面提供连接安装,或者联系我要u盘安装,免下载 安装有问题话可以联系我! 1、 VMware软件 下载地址1(迅雷)http://forspeed.onlinedown.net/down/vmware15.zip 百度云链接(提取码liu6)https://pan.baidu.com/s/1eJGST7AixIng4v7SoSN2aw 2、Linux系统 Ubuntu16.04版本下载链接(提取码:liu6): https://pan.baidu.com/s/1ZN5fDI7eWSIlRPqkyM38zQ Ubuntu18.04版本下载链接(提取码:liu6): https://pan.baidu.com/s/1-n5WIjuKbDD3NF9YX8-qKQ 二、VMware软件安装 !!!下面安装路径命名最好不要出现中文! 1、解压VMware压缩包得到下图所示文件: 图片 2、打开安装包 图片 3、建议更改安装位置到d盘,C盘大可以忽略 图片 更改后安装位置如下 图片 4、按照安装指示完成安装,安装过程中会重置网络,出现网络断开的现象,属于正常现象。 5、打开VMware,点击许可证!出现输入密钥界面,这时候就要用到密钥生成器了 图片 点击Generate键生成密匙,复制左侧密匙粘贴在VMware密匙界面里,回车确认即可破解软件 图片 秘钥复制后输入 图片 6、如果提示更新不要更新! 三、在VMware上安装linux系统 退出右键点击图标,以管理员权限运行。 1、打开VMware界面如下所示 图片 2、点击创建新的虚拟机 图片 选择自定义安装,点击下一步 3、继续选择下一步 图片 4、选择光盘映像文件,导入的文件为下载的Ubuntu18.04(或者Ubuntu16.04)Linux系统,然后点击下一步: 图片 5、输入你的信息,然后点击下一步,建议不要出现中文 图片 图片 6、输入你的虚拟机名称,按照惯例名称一般不要出现中文,并选择虚拟机部署的位置,然后点击下一部 图片 7、依据你电脑的情况选择分配给这台虚拟机的CPU,如果不清楚自己的电脑情况,建议选少一点,不然运行起来对主系统速度影响会很大。然后点击下一步 图片 8、调整你想要分配给虚拟机的内存,分配原则和上面一样,一般电脑总运行内存4G,调整完成后点击下一步。 图片 9、如无特殊情况,使用网络地址转换,然后点击下一步 图片 10、I/O控制器类型默认类型不用管,然后点击下一步 11、磁盘类型默认类型不用管,然后点击下一步 12、如无特殊情况,选择创建新的虚拟磁盘,然后点击下一步 图片 13、选择分配给磁盘的大小,分配原则与CPU、内存一样。选择将虚拟磁盘存储为一个文件,方便管理,然后点击下一步 图片 14、给磁盘文件命名,一般不要出现中文,然后点击下一步 图片 15、核对虚拟机的各种参数,然后点击完成,虚拟机即会自动安装完成 图片 16、第一次安装很慢,请耐心等待,安装完成后打开虚拟机如图所示,一般点击全屏以自适应屏幕大小 图片 开机无限重启蓝屏等问题 请点击跳转
嵌入式&系统
刘航宇
5年前
17
967
18
上一页
1
...
11
12
13
14
下一页