在shell中取文件的某一行的某一列的方法之一【转】

原创

在shell中取文件的某一行的某一列的方法之一

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/yugemengjing/article/details/82415307
            </div>
                                                <!--一个博主专栏付费入口-->
         
         <!--一个博主专栏付费入口结束-->
        <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-4a3473df85.css">
                                    <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-4a3473df85.css">
            <div class="htmledit_views" id="content_views">
                                        <p>需求:根据配置文件检测板子是否配置成功……</p>

 
  1. #!/bin/bash
  2. standFile= "$1"
  3. num=`cat $standFile | wc -l`
  4. for((i=1;i<= $num;i++))
  5. do
  6. for rl in $i
  7. do
  8. # 读取standFile文件的第i行第1列的值,并赋给tmp1
  9. tmp1=$(awk -v hang= "${i}" 'NR==hang {print $1}' ${standFile})
  10. # 读取standFile文件的第i行第3列的值,并赋给tmp2
  11. tmp2=$(awk -v hang= "${i}" 'NR==hang {print $3}' ${standFile})
  12. res= "`xmlconfig r $tmp1`"
  13. fin_res= ${res##*=}
  14. # 对比
  15. if [ $fin_res == $tmp2 ]
  16. then
  17. echo "$tmp1 is success"
  18. else
  19. echo "$tmp1 is failed"
  20. fi
  21. done
  22. done

 

文章最后发布于: 2018-09-05 10:13:40
            <!--打赏开始-->
                        <div class="reward-user-box" style="margin-top: -12px;">
                <span class="reward-word" style="color:#B4B4B4 !important">有 <span class="num">0</span> 个人打赏</span>
                                    <a target="_blank" href="https://im.csdn.net/im/main.html?userName=yugemengjing" data-report-click="{&quot;mod&quot;:&quot;popu_810&quot;,&quot;dest&quot;:&quot;私信&quot;}" data-report-view="{&quot;mod&quot;:&quot;popu_810&quot;,&quot;dest&quot;:&quot;私信&quot;}" id="profile-content-alink">
                     <div class="reward-fexd" id="">
                <!-- iconcsdnc-bookmark -->
                <svg class="reward-icon" aria-hidden="true">
				<use xlink:href="#csdnc-envelope"></use>
			    </svg>
                <div>私信求帮助</div>
                </div>
                </a>
               
            </div>
                    <!--打赏结束-->
        <div class="recommend-box"><div class="recommend-item-box type_blog clearfix" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u010043538/article/details/73277086&quot;,&quot;strategy&quot;:&quot;BlogCommendFromMachineLearnPai2&quot;,&quot;index&quot;:&quot;0&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u010043538/article/details/73277086&quot;,&quot;strategy&quot;:&quot;BlogCommendFromMachineLearnPai2&quot;,&quot;index&quot;:&quot;0&quot;}">
<div class="content" style="width: 962px;">
	<a href="https://blog.csdn.net/u010043538/article/details/73277086" target="_blank" rel="noopener" title="Linux:使用awk命令获取文本的某一行,某一列">
	<h4 class="text-truncate oneline" style="width: 802px;">
			Linux:使用awk命令获<em>取</em>文本的某<em>一行</em>,某一<em>列</em>		</h4>
	<div class="info-box d-flex align-content-center">
		<p class="date-and-readNum oneline">
			<span class="date hover-show">06-15</span>
			<span class="read-num hover-hide">
				阅读数 
				1万+</span>
			</p>
		</div>
	</a>
	<p class="content" style="width: 962px;">
		<a href="https://blog.csdn.net/u010043538/article/details/73277086" target="_blank" rel="noopener" title="Linux:使用awk命令获取文本的某一行,某一列">
			<span class="desc oneline">1、打印文件的第一列(域)awk'{print$1}'filename2、打印文件的前两列(域)awk'{print$1,$2}'filename3、打印完第一列,然后打印第二列awk'{print$...</span>
		</a>
		<span class="blog_title_box oneline ">
								<span class="type-show type-show-blog type-show-after">博文</span>
										<a target="_blank" rel="noopener" href="https://blog.csdn.net/u010043538">来自:	<span class="blog_title"> 孙琨SealSun</span></a>
											</span>
	</p>
</div>
</div>
还能输入1000个字符
<div class="comment-list-container">
	<a id="comments"></a>
	<div class="comment-list-box">
	</div>
	<div id="commentPage" class="pagination-box d-none"></div>
	<div class="opt-box text-center">
		<div class="btn btn-sm btn-link-blue" id="btnMoreComment"></div>
	</div>
</div>

shell实现:读文件一行,sed操作文件一行

06-25 阅读数 2万+

写法一:#!/bin/bashwhilereadlinedoecho$line#这里可根据实际用途变化done 博文 来自: jk110333的专栏

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_59" data-pid="59"><script type="text/javascript">
(function() {
    var s = "_" + Math.random().toString(36).slice(2);
    document.write('<div style="" id="' + s + '"></div>');
    (window.slotbydup = window.slotbydup || []).push({
        id: "u3491668",
        container:  s
    });
})();

文件出指定行(shell)

05-18

我有一个>1G的文件,打开肯定是不行的,太麻烦了。 我现在想将指定的行取出来备份到一个文件,然后从文件中将该指定的行删除! 请问怎么写。 现在我想取出来是这样取的(如取2571): head -257 论坛

shell脚本之按行读文件

05-26 阅读数 849

1 #!/bin/bash 2 #按行读取文件 3 while... 博文 来自: I_love_blog的博客

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_60" data-pid="60"><iframe src="https://adaccount.csdn.net/#/preview/261?m=bncppbQAJEQiHpcEDtiJySHAJcLEALJQtAAmUHiXApJQbtEHADbApEbXcEpitHSAiEQSLtiASSJWSDviAtoiJffbJDXJynHDnpQQ&amp;k=" scrolling="no" width="100%" height="75px" frameborder="0"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?d=2&amp;k=&amp;m=bncppbQAJEQiHpcEDtiJySHAJcLEALJQtAAmUHiXApJQbtEHADbApEbXcEpitHSAiEQSLtiASSJWSDviAtoiJffbJDXJynHDnpQQ"></div></div>
		<div class="recommend-item-box blog-expert-recommend-box" style="display: block;">
		<div class="d-flex">
			<div class="blog-expert-recommend">
				<div class="blog-expert">
					<div class="blog-expert-flexbox" data-report-view="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><a href="https://blog.csdn.net/u010043538" target="_blank"><img src="https://profile.csdnimg.cn/1/9/A/3_u010043538" username="u010043538" alt="squeue2019" title="squeue2019"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="u010043538" data-nick="squeue2019">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><a href="https://blog.csdn.net/u010043538" target="_blank"><h5 class="oneline" title="squeue2019">squeue2019</h5></a></span>  <p></p><p class="article-num" title="109篇文章"> 109篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><a href="https://blog.csdn.net/jk110333" target="_blank"><img src="https://profile.csdnimg.cn/4/B/8/3_jk110333" username="jk110333" alt="siaisjack" title="siaisjack"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="jk110333" data-nick="siaisjack">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><a href="https://blog.csdn.net/jk110333" target="_blank"><h5 class="oneline" title="siaisjack">siaisjack</h5></a></span>  <p></p><p class="article-num" title="208篇文章"> 208篇文章</p><p class="article-num" title="排名:1000+"> 排名:1000+</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><a href="https://blog.csdn.net/wuzhiwuweisun" target="_blank"><img src="https://profile.csdnimg.cn/5/6/B/3_wuzhiwuweisun" username="wuzhiwuweisun" alt="wuzhiwuweisun" title="wuzhiwuweisun"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="wuzhiwuweisun" data-nick="wuzhiwuweisun">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><a href="https://blog.csdn.net/wuzhiwuweisun" target="_blank"><h5 class="oneline" title="wuzhiwuweisun">wuzhiwuweisun</h5></a></span>  <p></p><p class="article-num" title="35篇文章"> 35篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><a href="https://blog.csdn.net/Nicole1024" target="_blank"><img src="https://profile.csdnimg.cn/3/6/E/3_nicole1024" username="Nicole1024" alt="陌上花開#" title="陌上花開#"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="Nicole1024" data-nick="陌上花開#">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yugemengjing/article/details/82415307&quot;}"><a href="https://blog.csdn.net/Nicole1024" target="_blank"><h5 class="oneline" title="陌上花開#">陌上花開#</h5></a></span>  <p></p><p class="article-num" title="13篇文章"> 13篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div></div>
				</div>
			</div>
		</div>
	</div>
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_61" data-pid="61"><iframe src="https://adaccount.csdn.net/#/preview/787?m=JcfvbSHLDcoiJSHAAJbLcSiUXSvbpttSJHbbXcHiSALJtEpipyJmLiiyntSLntbHQWtJbbEbiDpDpJpmDDUboSpLSHScLnvnJESQ&amp;k=" scrolling="no" width="100%" height="75px" frameborder="0"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?d=2&amp;k=&amp;m=JcfvbSHLDcoiJSHAAJbLcSiUXSvbpttSJHbbXcHiSALJtEpipyJmLiiyntSLntbHQWtJbbEbiDpDpJpmDDUboSpLSHScLnvnJESQ"></div></div>

shell文件第几行 第几的值

07-04 阅读数 1万+

shell读取文件第几行第几列的值 博文 来自: wengyupeng 蜗牛一步一步向前。。。

shell文件指定行的操作

09-18 阅读数 1252

shell对文件指定行的操作awksed命令 博文 来自: weixin_42558057的博客

shell根据关键字获文件一行的行号

06-04 阅读数 288

为什么80%的码农都做不了架构师?&gt;&gt;&gt;... 博文 来自: weixin_33694620的博客

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_62" data-pid="62"><iframe src="https://adaccount.csdn.net/#/preview/786?m=nSScfvEpLHALDEESScJJnLoHAcUtJEXJEEbUbHXSnnDbLEnHyJAnpmbXLSpLpLtnHQSWbJcbvEnJoJScpfpJEScobLnpSHcAnvJQ&amp;k=" scrolling="no" width="100%" height="75px" frameborder="0"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?d=2&amp;k=&amp;m=nSScfvEpLHALDEESScJJnLoHAcUtJEXJEEbUbHXSnnDbLEnHyJAnpmbXLSpLpLtnHQSWbJcbvEnJoJScpfpJEScobLnpSHcAnvJQ"></div></div>
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_63" data-pid="63"><iframe src="https://adaccount.csdn.net/#/preview/263?m=JAcQLQHEcpDbJySHcinQmtbbtvHpXiAnJbUtbbpLHEttDAttLXnpUJAHLbSQbtWncvbStpAcyLnLbtAJEUJSiSAStASnXbHDbQLQ&amp;k=" scrolling="no" width="100%" height="75px" frameborder="0"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?d=2&amp;k=&amp;m=JAcQLQHEcpDbJySHcinQmtbbtvHpXiAnJbUtbbpLHEttDAttLXnpUJAHLbSQbtWncvbStpAcyLnLbtAJEUJSiSAStASnXbHDbQLQ"></div></div>
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_64" data-pid="64"><script type="text/javascript">
(function() {
    var s = "_" + Math.random().toString(36).slice(2);
    document.write('<div style="" id="' + s + '"></div>');
    (window.slotbydup = window.slotbydup || []).push({
        id: "u3600856",
        container:  s
    });
})();

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_65" data-pid="65"><script type="text/javascript">
    (function() {
        var s = "_" + Math.random().toString(36).slice(2);
        document.write('<div style="" id="' + s + '"></div>');
        (window.slotbydup = window.slotbydup || []).push({
            id: "u4221803",
            container: s
        });
    })();

程序员实用工具网站

09-04 阅读数 19万+

目录

1、搜索引擎

2、PPT

3、图片操作

4、文件共享

5、应届生招聘

6、程序员面试题库

7、办公、开发软件

8、高清图片、视频素材网站

9、项目开源

10、算法

11、在…


博文



<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_66" data-pid="66"><iframe src="https://adaccount.csdn.net/#/preview/575?m=cLALQvEbbLHicnAEALcyiiJHcDiEADSctHJnXbJXAHiJvtyiJvEHbtnSAAEQEWQiifLvLStmpLLvQvAESiUHtEnAJScLLbSQpinQ&amp;k=" scrolling="no" width="100%" height="75px" frameborder="0"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?d=2&amp;k=&amp;m=cLALQvEbbLHicnAEALcyiiJHcDiEADSctHJnXbJXAHiJvtyiJvEHbtnSAAEQEWQiifLvLStmpLLvQvAESiUHtEnAJScLLbSQpinQ"></div></div>

我的 Input框 不可能这么可爱

09-03 阅读数 1万+

作者:陈大鱼头 github: KRISACHAN

&lt;input /&gt; 标签是我们日常开发中非常常见的替换元素了,但是最近在刷 whattwg 跟 MDN 的时候发现 跟 &lt;in…


博文



我花了一夜用数据结构给女朋友写个H5走迷宫游戏

09-21 阅读数 17万+

起因

又到深夜了,我按照以往在csdn和公众号写着数据结构!这占用了我大量的时间!我的超越妹妹严重缺乏陪伴而 怨气满满!

而女朋友时常埋怨,认为数据结构这么抽象难懂的东西没啥作用,常会问道…


博文



这篇文章很长,但绝对是精华,相信我,读完以后,你会知道学历不好的解决方案…


博文



nginx学习,看这一篇就够了:下载、安装。使用:正向代理、反向代理、负载均衡。常用命令和配置文件

10-25 阅读数 1万+

文章目录前言一、nginx简介1. 什么是 nginx 和可以做什么事情2.Nginx 作为 web 服务器3. 正向代理4. 反向代理5. 动静分离6.动静分离二、Nginx 的安装三、 Ngin... 博文

<div class="recommend-item-box recommend-recommend-box"><div><iframe scrolling="no" src="//pos.baidu.com/s?hei=90&amp;wid=900&amp;di=u3491668&amp;ltu=https%3A%2F%2Fblog.csdn.net%2Fyugemengjing%2Farticle%2Fdetails%2F82415307&amp;psi=c2e7e1d9c6e80790a16911560b3f4ff9&amp;par=1696x910&amp;dai=4&amp;col=zh-CN&amp;tlm=1574611174&amp;ant=0&amp;ltr=https%3A%2F%2Fblog.csdn.net%2Fyugemengjing%2Fcategory_6934804.html&amp;prot=2&amp;cfv=0&amp;dtm=HTML_POST&amp;ps=5434x511&amp;tpr=1574611174626&amp;cmi=2&amp;cja=false&amp;ti=%E5%9C%A8shell%E4%B8%AD%E5%8F%96%E6%96%87%E4%BB%B6%E7%9A%84%E6%9F%90%E4%B8%80%E8%A1%8C%E7%9A%84%E6%9F%90%E4%B8%80%E5%88%97%E7%9A%84%E6%96%B9%E6%B3%95%E4%B9%8B%E4%B8%80&amp;psr=1696x954&amp;cce=true&amp;pcs=1677x804&amp;tcn=1574611175&amp;drs=1&amp;cpl=1&amp;dis=0&amp;cec=UTF-8&amp;chi=1&amp;ccd=24&amp;ari=2&amp;dc=3&amp;pss=1677x5898&amp;dri=1&amp;pis=-1x-1&amp;cdo=-1&amp;exps=111000,110011" width="900" height="90" frameborder="0"></iframe></div><script type="text/javascript" src="//rabc1.iteye.com/production/res/rxjg.js?pkcgstj=jm"></script></div>

【安全】Web渗透测试(全流程)

10-29 阅读数 4604

1 信息收集

1.1域名、IP、端口

域名信息查询:信息可用于后续渗透

IP信息查询:确认域名对应IP,确认IP是否真实,确认通信是否正常

端口信息查询:NMap扫描,确认开放端口
如果不…


博文



动…


博文



<div class="recommend-item-box recommend-recommend-box"><div id="_2ak6qmtun3m"><div id="ahziza" style="display:none;"></div><iframe scrolling="no" src="//pos.baidu.com/s?hei=90&amp;wid=900&amp;di=u3491668&amp;ltu=https%3A%2F%2Fblog.csdn.net%2Fyugemengjing%2Farticle%2Fdetails%2F82415307&amp;psi=c2e7e1d9c6e80790a16911560b3f4ff9&amp;pis=-1x-1&amp;cec=UTF-8&amp;drs=1&amp;dc=3&amp;cdo=-1&amp;exps=111000,110011&amp;ltr=https%3A%2F%2Fblog.csdn.net%2Fyugemengjing%2Fcategory_6934804.html&amp;ps=5940x511&amp;ccd=24&amp;cfv=0&amp;ant=0&amp;cja=false&amp;dis=0&amp;chi=1&amp;col=zh-CN&amp;ari=2&amp;cce=true&amp;pcs=1677x804&amp;prot=2&amp;tlm=1574611174&amp;cpl=1&amp;pss=1677x5993&amp;tcn=1574611175&amp;cmi=2&amp;tpr=1574611174626&amp;psr=1696x954&amp;ti=%E5%9C%A8shell%E4%B8%AD%E5%8F%96%E6%96%87%E4%BB%B6%E7%9A%84%E6%9F%90%E4%B8%80%E8%A1%8C%E7%9A%84%E6%9F%90%E4%B8%80%E5%88%97%E7%9A%84%E6%96%B9%E6%B3%95%E4%B9%8B%E4%B8%80&amp;dtm=HTML_POST&amp;dri=2&amp;par=1696x910&amp;dai=5" width="900" height="90" frameborder="0"></iframe></div><script type="text/javascript" src="//rabc1.iteye.com/production/res/rxjg.js?pkcgstj=jm"></script></div>

Linux/C/C++ 不可错过的好书

10-24 阅读数 1万+

来源:公众号【编程珠玑】

作者:守望先生

ID:shouwangxiansheng

前言

经常有读者让我推荐书籍,这次我就把我私藏的计算机书单分享给你们!不过由于时间匆忙,不会进行更加详细…


博文



漫话:什么是 https ?这应该是全网把 https 讲的最好的一篇文章了

10-26 阅读数 3万+

今天这篇文章,讲通过对话的形式,让你由浅入深着知道,为什么 Https 是安全的。

一、对称加密

一禅:在每次发送真实数据之前,服务器先生成一把密钥,然后先把密钥传输给客户端。之后服务器给客…


博文



史上最全的mysql基础教程

10-28 阅读数 1万+

启动与停止

启动mysql服务
sudo /usr/local/mysql/support-files/mysql.server start
停止mysql服务
sudo /usr/loc…


博文



敲黑板!!!读了这篇文章,你将知道如何才能进大厂,如何实现财务自…


博文



史上最全正则表达式语法,文末附常用表达式!

10-28 阅读数 5945

废话少说,直接开始学习!

一、元字符

元字符是构造正则表达式的一种基本元素。

. :匹配除换行符以外的任意字符

w:匹配字母或数字或下划线或汉字

s:匹配任意的空白符

d:匹配数字

b:…


博文



一文搞懂什么是TCP/IP协议

10-28 阅读数 2万+

什么是TCP/IP协议?

计算机与网络设备之间如果要相互通信,双方就必须基于相同的方法.比如如何探测到通信目标.由哪一边先发起通信,使用哪种语言进行通信,怎样结束通信等规则都需要事先确定.不同的硬件…


博文



中国麻将:世界上最早的区块链项目

10-29 阅读数 4万+

中国麻将:世界上最早的区块链项目

最近区块链这个玩意又被市场搞的很是火热,相信大部分人都不太清楚这玩意到底是怎么样的一个概念,它来了,它来了,它到底是啥~ 国家都开始发文支持了,下面是一个通俗易懂的…


博文



比特币原理详解

10-29 阅读数 2万+

一、什么是比特币

比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是…


博文



Python 基础(一):入门必备知识

10-30 阅读数 1万+

Python 入门必备知识,你都掌握了吗? 博文

根据我们的经验,程序员兼职主要分为三种:兼职职位众包、项目整包和自由职业者驻场。

所谓的兼职职位众…


博文



Ngrok: 超简单的内网穿透,了解一下 ?

10-31 阅读数 6629

【1】什么是内网穿透?

首先,我们生活中的网络从应用上可以分为内网和外网;

内网就是你自己的网络环境,就你自己能访问,比如你本地测试进行的localhost;

外网就不言而喻了,你看网页,视频等…


博文



二、Python运算符、条件结构、循环结构

三、Python函数

四、做一次综合练习,做一个控制台…


博文



刷了几千道算法题,这些我私藏的刷题网站都在这里了!

11-08 阅读数 2万+

遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活…

然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交…


博文



JavaScript 为什么能活到现在?

11-08 阅读数 1496

作者 | 司徒正美

责编 |郭芮

出品 | CSDN(ID:CSDNnews)

JavaScript能发展到现在的程度已经经历不少的坎坷,早产带来的某些缺陷是永久性的,因此浏览器才有禁用Ja…


博文



                <div class="recommend-item-box type_hot_word">
                <div class="content clearfix" style="width: 962px;">
                    <div class="float-left">
                                                                            <span>
                            <a href="https://blog.csdn.net/yilovexing/article/details/80577510" target="_blank">
                            python</a>
                        </span>
                                                    <span>
                            <a href="https://blog.csdn.net/slwbcsdn/article/details/53458352" target="_blank">
                            json</a>
                        </span>
                                                    <span>
                            <a href="https://blog.csdn.net/csdnnews/article/details/83753246" target="_blank">
                            java</a>
                        </span>
                                                    <span>
                            <a href="https://blog.csdn.net/qq_35077512/article/details/88952519" target="_blank">
                            mysql</a>
                        </span>
                                                    <span>
                            <a href="https://blog.csdn.net/pdcfighting/article/details/80297499" target="_blank">
                            pycharm</a>
                        </span>
                                                    <span>
                            <a href="https://blog.csdn.net/sinyu890807/article/details/97142065" target="_blank">
                            android</a>
                        </span>
                                                    <span>
                            <a href="https://blog.csdn.net/gexiaoyizhimei/article/details/100122368" target="_blank">
                            linux</a>
                        </span>
                                                    <span>
                            <a href="https://download.csdn.net/download/xhg_gszs/10978826" target="_blank">
                            json格式</a>
                        </span>
                                                
                                                                            <span>
                            <a href="https://www.csdn.net/gather_13/MtzaAgxsLWRvd25sb2Fk.html" target="_blank">
                            c# tcp通信客户端类</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_15/MtzaAgysLWRvd25sb2Fk.html" target="_blank">
                            c# 数字转时间</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_11/MtzaAgzsLWRvd25sb2Fk.html" target="_blank">
                            c# 读json</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_13/MtzaAg0sLWRvd25sb2Fk.html" target="_blank">
                            c# 释放文件</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_14/MtzaAg1sLWRvd25sb2Fk.html" target="_blank">
                            c#某个数的模</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_1b/MtzaAg2sLWRvd25sb2Fk.html" target="_blank">
                            c# 更改exe生成名称</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_18/MtzaAg3sLWRvd25sb2Fk.html" target="_blank">
                            c#程序文件写入性能太差</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_1a/MtzaAg4sLWRvd25sb2Fk.html" target="_blank">
                            c#给定5个商品</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_1e/MtzaAg5sLWRvd25sb2Fk.html" target="_blank">
                            c# 异步委托 性能</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_29/MtzaEgxsLWJsb2cO0O0O.html" target="_blank">
                            c#满足条件跳出循环</a>
                        </span>
                                                                        </div>
                </div>
                </div>
                                <div class="recommend-loading-box">
                <img src="https://csdnimg.cn/release/phoenix/images/feedLoading.gif">
            </div>
            <div class="recommend-end-box">
                <p class="text-center">没有更多推荐了,<a href="https://blog.csdn.net/" class="c-blue c-blue-hover c-blue-focus">返回首页</a></p>
            </div>
        </div>
                        <div class="template-box">
                <span>©️2019 CSDN</span><span class="point"></span>
            <span>皮肤主题: 大白</span>
            <span> 设计师:
                                        CSDN官方博客                                    </span>
            </div>
                </main>
    <aside class="blog_container_aside">
<!--主页引入-->
        <div id="asideProfile" class="aside-box">
<!-- <h3 class="aside-title">个人资料</h3> -->
<div class="profile-intro d-flex">
    <div class="avatar-box d-flex justify-content-center flex-column">
        <a href="https://blog.csdn.net/yugemengjing">
            <img src="https://profile.csdnimg.cn/F/E/C/3_yugemengjing" class="avatar_pic" username="yugemengjing">
                                <img src="https://g.csdnimg.cn/static/user-reg-year/2x/3.png" class="user-years">
                        </a>
        
    </div>
    <div class="user-info d-flex flex-column profile-intro-name-box">
        <div>
                            <span class="name csdn-tracking-statistics tracking-click " style="display:block" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;}" username="yugemengjing">
                <a href="https://blog.csdn.net/yugemengjing" class="" id="uid" title="baiduoWang">
                    baiduoWang                    </a>
            </span>
                        </div>
        <div class="profile-intro-name-boxFooter">
                                <div class="personal-home-page" style="right:-96px;"><a target="_blank" href="https://me.csdn.net/yugemengjing">TA的个人主页 &gt;</a></div>
                            <div class="profile-intro-name-boxOpration">
                                        <div class="profile-personal-letter">
                        <a id="profile-personal-alink" class="profile-personal-alink" href="https://im.csdn.net/im/main.html?userName=yugemengjing" target="_blank" rel="noopener">私信</a>
                    </div>
                    <div class="opt-box d-flex  flex-column">
                        <span class="csdn-tracking-statistics tracking-click" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;}">
                                                                <a class="btn btn-sm btn-red-hollow attention" id="btnAttent" style="padding:0;">关注</a>
                                                        </span>
                    </div>
                                </div>
        </div>
    </div>
</div>
<div class="data-info d-flex item-tiling">
            <dl class="text-center" title="62">
                        <dt><a href="https://blog.csdn.net/yugemengjing?t=1">原创</a></dt>
            <dd><a href="https://blog.csdn.net/yugemengjing?t=1"><span class="count">62</span></a></dd>
                </dl>
    <dl class="text-center" id="fanBox" title="107">
        <dt>粉丝</dt>
        <dd><span class="count" id="fan">107</span></dd>
    </dl>
    <dl class="text-center" title="105">
        <dt>获赞</dt>
        <dd><span class="count">105</span></dd>
    </dl>
    <dl class="text-center" title="39">
        <dt>评论</dt>
        <dd><span class="count">39</span></dd>
    </dl>
    <dl class="text-center" title="126438">
        <dt>访问</dt>
        <dd><span class="count">12万+</span></dd>
    </dl>
</div>
<div class="grade-box clearfix">
    <dl class="aside-box-footerClassify">
        <dt>等级:</dt>
        <dd>
            <a href="https://blog.csdn.net/home/help.html#level" title="4级,点击查看等级说明" target="_blank">
                <svg class="icon icon-level" aria-hidden="true">
                    <use xlink:href="#csdnc-bloglevel-4"></use>
                </svg>
            </a>
        </dd>
    </dl>
    <dl>
        <dt>周排名:</dt>
        <dd>
            <a class="grade-box-rankA" href="https://blog.csdn.net/rank/writing_rank" target="_blank">
                2万+                </a>
        </dd>
    </dl>
    <dl>
        <dt>积分:</dt>
        <dd title="1465">
            1465            </dd>
    </dl>
    <dl title="44279">
        <dt>总排名:</dt>
        <dd>
            <a class="grade-box-rankA" href="https://blog.csdn.net/rank/writing_rank_total" target="_blank">
                4万+                </a>
        </dd>
    </dl>
</div>
<div class="aside-box-footer">
                <div class="badge-box d-flex">
            <div class="profile-medal">勋章:</div>
            <div class="badge d-flex">
                                                                                                    <div class="icon-badge" title="持之以恒">
                                <div class="mouse-box">
                                    <img src="https://g.csdnimg.cn/static/user-medal/chizhiyiheng.png" alt="">
                                    <div class="icon-arrow"></div>
                                </div>
                                <div class="grade-detail-box">
                                    <div class="pos-box">
                                        <div class="left-box d-flex justify-content-center align-items-center flex-column">
                                            <img src="https://g.csdnimg.cn/static/user-medal/chizhiyiheng.png" alt="">
                                            <p>持之以恒</p>
                                        </div>
                                        <div class="right-box">
                                            授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!                                            </div>
                                    </div>
                                </div>
                            </div>
                                                                                    </div>
            <script>
                (function($) {
                    setTimeout(function() {
                        $('div.icon-badge.show-moment').removeClass('show-moment');
                    }, 5000);
                })(window.jQuery)
            </script>
        </div>
            
</div>

热门文章

  • 				<a href="https://blog.csdn.net/yugemengjing/article/details/82469785">
                                                shell编程100例                    </a>
    				<p class="read">阅读数 <span>44086</span></p>
    			</li>
    						<li>
    
    				<a href="https://blog.csdn.net/yugemengjing/article/details/78389352">
                                                如何将图片储存在MySQL数据库中                    </a>
    				<p class="read">阅读数 <span>26431</span></p>
    			</li>
    						<li>
    
    				<a href="https://blog.csdn.net/yugemengjing/article/details/68954277">
                                                判断强连通图、单向连通图、弱连通图                    </a>
    				<p class="read">阅读数 <span>9562</span></p>
    			</li>
    						<li>
    
    				<a href="https://blog.csdn.net/yugemengjing/article/details/72791445">
                                                生产者消费者问题                    </a>
    				<p class="read">阅读数 <span>3578</span></p>
    			</li>
    						<li>
    
    				<a href="https://blog.csdn.net/yugemengjing/article/details/72790945">
                                                进程控制                    </a>
    				<p class="read">阅读数 <span>2976</span></p>
    			</li>
    				</ul>
    </div>
    

最新评论

	<div class="aside-box">
		<div id="kp_box_57" data-pid="57"><script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

			<div class="aside-box">
		<div class="persion_article">
		<div class="right_box footer_box csdn-tracking-statistics" data-report-view="{&quot;mod&quot;:&quot;popu_475&quot;}">        <div class="contact-box" id="footer-contact-box"><div class="img-box"><img src="https://csdnimg.cn/pubfooter/images/csdn-cxrs.png" alt="程序人生" style="padding: 6px;width: 98px;height: 98px;"><p class="app-text">程序人生</p></div><div class="img-box fr"><a href="https://blog.csdn.net/csdnnews?utm_source=csdn_footer" target="_blank"><img style="padding: 6px;width: 98px;height: 98px;" src="//csdnimg.cn/pubfooter/images/csdn-zx.png" alt="CSDN资讯"></a><p class="app-text">CSDN资讯</p></div></div>        <div class="contact-info">        <p><svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.167 2h11.666C14.478 2 15 2.576 15 3.286v9.428c0 .71-.522 1.286-1.167 1.286H2.167C1.522 14 1 13.424 1 12.714V3.286C1 2.576 1.522 2 2.167 2zm-.164 3v1L8 10l6-4V5L8 9 2.003 5z" fill="#5c5c5c" fill-rule="evenodd"></path></svg><a href="mailto:webmaster@csdn.net" target="_blank"><span class="txt">kefu@csdn.net</span></a>        <em class="width126"><svg t="1538013544186" width="17" height="17" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23556" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M902.60033922 650.96445566c-18.0718526-100.84369837-94.08399771-166.87723736-94.08399771-166.87723737 10.87530062-91.53186599-28.94715402-107.78733693-28.94715401-107.78733691C771.20003413 93.08221664 517.34798062 98.02553561 511.98620441 98.16348824 506.65661791 98.02553561 252.75857992 93.08221664 244.43541101 376.29988138c0 0-39.79946279 16.25547094-28.947154 107.78733691 0 0-75.98915247 66.03353901-94.0839977 166.87723737 0 0-9.63372291 170.35365477 86.84146124 20.85850523 0 0 21.70461757 56.79068296 61.50407954 107.78733692 0 0-71.1607951 23.19910867-65.11385185 83.46161052 0 0-2.43717093 67.16015592 151.93232126 62.56172014 0 0 108.5460788-8.0932473 141.10300432-52.14626271H526.33792324c32.57991817 44.05301539 141.10300431 52.1462627 141.10300431 52.14626271 154.3235077 4.59843579 151.95071457-62.56172013 151.95071457-62.56172014 6.00095876-60.26250183-65.11385185-83.46161053-65.11385185-83.46161052 39.77647014-50.99665395 61.4810877-107.78733693 61.4810877-107.78733692 96.45219231 149.49514952 86.84146124-20.85850523 86.84146125-20.85850523" p-id="23557" fill="#5c5c5c"></path></svg><a href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzgwMDE4MDEwNl80ODc3MzVfODAwMTgwMTA2XzJf" class="qqcustomer_s" target="_blank"><span class="txt">QQ客服</span></a></em></p>        <p><em class="width126"><svg t="1538012951761" width="17" height="17" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23083" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M466.4934485 880.02006511C264.6019863 859.18313878 107.13744214 688.54706608 107.13744214 481.14947309 107.13744214 259.68965394 286.68049114 80.14660493 508.14031029 80.14660493s401.00286817 179.54304901 401.00286814 401.00286816v1.67343191C908.30646249 737.58941724 715.26799489 943.85339507 477.28978337 943.85339507c-31.71423369 0-62.61874229-3.67075386-92.38963569-10.60739903 30.09478346-11.01226158 56.84270313-29.63593923 81.5933008-53.22593095z m-205.13036267-398.87059202a246.77722444 246.77722444 0 0 0 493.5544489 0 30.85052691 30.85052691 0 0 0-61.70105383 0 185.07617062 185.07617062 0 0 1-370.15234125 0 30.85052691 30.85052691 0 0 0-61.70105382 0z" p-id="23084" fill="#5c5c5c"></path></svg><a href="http://bbs.csdn.net/forums/Service" target="_blank"><span class="txt">客服论坛</span></a></em>        <svg t="1538013874294" width="17" height="17" style="" viewBox="0 0 1194 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23784" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M1031.29689505 943.85339507h-863.70679012A71.98456279 71.98456279 0 0 1 95.60554212 871.86883228v-150.85178906c0-28.58329658 16.92325492-54.46750945 43.13135785-65.93861527l227.99160176-99.75813425c10.55341735-4.61543317 18.24580594-14.0082445 20.72896295-25.23643277l23.21211998-105.53417343a71.95757195 71.95757195 0 0 1 70.28414006-56.51881307h236.95255971c33.79252817 0 63.02360485 23.5090192 70.28414004 56.51881307l23.21211997 105.53417343c2.48315701 11.25517912 10.17554562 20.62099961 20.72896296 25.23643277l227.99160177 99.75813425a71.98456279 71.98456279 0 0 1 43.13135783 65.93861527v150.85178906A71.98456279 71.98456279 0 0 1 1031.26990421 943.85339507z m-431.85339506-143.94213475c143.94213474 0 143.94213474-48.34058941 143.94213474-107.96334876s-64.45411922-107.96334877-143.94213474-107.96334877c-79.51500637 0-143.94213474 48.34058941-143.94213475 107.96334877s0 107.96334877 143.94213475 107.96334876zM1103.254467 296.07330247v148.9894213a35.97878598 35.97878598 0 0 1-44.15700966 35.03410667l-143.94213473-33.57660146a36.0057768 36.0057768 0 0 1-27.80056231-35.03410668V296.1002933c-35.97878598-47.98970852-131.95820302-71.98456279-287.91126031-71.98456279S347.53801649 248.11058478 311.53223967 296.1002933v115.385829c0 16.73431906-11.52508749 31.25538946-27.80056233 35.03410668l-143.94213473 33.57660146A35.97878598 35.97878598 0 0 1 95.63253297 445.06272377V296.07330247C162.81272673 152.13116772 330.77670658 80.14660493 599.47049084 80.14660493s436.63077325 71.98456279 503.81096699 215.92669754z" p-id="23785" fill="#5c5c5c"></path></svg>400-660-0108 </p>        <p style="text-align:center">工作时间 8:30-22:00</p>        </div>        <div class="bg-gray">            <div class="feed_copyright">            <p><a class="right-dotte" href="//www.csdn.net/company/index.html#about" target="_blank">关于我们</a><a href="//www.csdn.net/company/index.html#recruit" target="_blank" class="right-dotte">招聘</a><a href="//www.csdn.net/company/index.html#contact" target="_blank" class="right-dotte">广告服务</a>            <a href="https://www.csdn.net/gather/A" target="_blank" class="footer_baidu">            网站地图</a></p>            <p class="fz12_baidu"><a href="https://zn.baidu.com/cse/home/index" target="_blank"><svg width="13" height="14" xmlns="http://www.w3.org/2000/svg"><path d="M8.392 7.013c1.014 1.454 2.753 2.8 2.753 2.8s1.303 1.017.47 2.98c-.833 1.962-3.876.942-3.876.942s-1.122-.36-2.424-.072c-1.303.291-2.426.181-2.426.181s-1.523.037-1.957-1.888c-.434-1.927 1.52-2.982 1.666-3.161.145-.183 1.159-.873 1.81-1.963.653-1.09 2.608-1.962 3.984.181zm1.23 5.706V9.346H8.64v2.534h-.937s-.3-.044-.356-.285V9.33l-.925.015v2.518s.042.627.925.855h2.277zm-3.685.013V7.951l-.896-.014v1.295H3.987s-1.054.086-1.422 1.28c-.129.798.114 1.266.156 1.368.043.099.383.682 1.238.852h1.978zm-2.433-1.45c-.087-.286.013-.613.057-.741.042-.128.228-.427.61-.54h.855v1.948h-.797s-.555-.029-.725-.668zm6.877-8.775c-.143.909-.865 2.108-1.99 1.962-1.121-.144-1.375-1.16-1.267-2.179C7.214 1.458 8.21.18 9.007.364c.796.18 1.52 1.235 1.374 2.143zm-4.09-.345c0 1.197-.68 2.164-1.52 2.164S3.25 3.36 3.25 2.162C3.25.967 3.932 0 4.77 0c.842 0 1.52.967 1.52 2.162zm4.854 2.09c1.34 0 1.701 1.309 1.701 1.743 0 .438.182 2.29-1.485 2.326-1.667.037-1.737-1.126-1.737-1.96 0-.874.179-2.11 1.52-2.11zm-7.93.581c.045.398.253 2.217-1.27 2.544C.427 7.704-.14 5.947.028 5.124c0 0 .18-1.78 1.412-1.89.98-.085 1.7.986 1.774 1.6z" fill="#999" fill-rule="evenodd"></path></svg><em>百度提供站内搜索</em></a>&nbsp;<a href="http://www.miibeian.gov.cn/publish/query/indexFirst.action" target="_blank" class="ml14">京ICP备19004658号</a></p>            <p class="fz12_baidu">©1999-2019 北京创新乐知网络技术有限公司 </p>            </div>        </div>        <div class="allow-info-box">        <p><a href="https://csdnimg.cn/cdn/content-toolbar/csdn-ICP.png" target="_blank">经营性网站备案信息</a>        <em class="width126"><a href="http://www.cyberpolice.cn/" target="_blank"><span>网络110报警服务</span></a></em></p>        <p><a href="http://www.bjjubao.org/" target="_blank"><span>北京互联网违法和不良信息举报中心</span></a></p>        <p><a href="http://www.12377.cn/" target="_blank"><span>中国互联网举报中心</span></a><a href="https://download.csdn.net/index.php/tutelage/" target="_blank"><span style="margin-left:8px">家长监护</span></a><a href="https://blog.csdn.net/blogdevteam/article/details/90369522" target="_blank"><span style="margin-left:8px">版权申诉</span></a></p>        </div>        </div></div>
	</div>
</div>
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页