C++操作Redis的简单例子

C++操作Redis的简单例子

相信做过服务端开发的应该都知道Redis的大名,它是一个开源的使用ANSI C语言编写、支持网络、可基于内存亦可持久化的日志型、Key-Value数据库,我们后台是用C++开发的,问了下他们,用的缓存框架有Redis,SSDB,今天看了几个帖子,简单了解Redis的用法。记录一下过程。

首先去官网下载最新的Redis源码
http://redis.io/
解压之后,进入目录编译


 
  1. make
  2. make test
  3. sudo make install

下载hredis
https://github.com/redis/hiredis
解压之后,同样的


 
  1. make
  2. sudo make install

进入Redis的src目录
启动服务

./redis-server
 

redis-cli
 


连接成功...

代码测试

新建一个临时目录
创建新文件redis.h


 
  1. #ifndef _REDIS_H_
  2. #define _REDIS_H_
  3. #include <iostream>
  4. #include <string.h>
  5. #include <string>
  6. #include <stdio.h>
  7. #include <hiredis/hiredis.h>
  8. class Redis
  9. {
  10. public:
  11. Redis(){}
  12. ~Redis()
  13. {
  14. this->_connect = NULL;
  15. this->_reply = NULL;
  16. }
  17. bool connect(std::string host, int port)
  18. {
  19. this->_connect = redisConnect(host.c_str(), port);
  20. if(this->_connect != NULL && this->_connect->err)
  21. {
  22. printf("connect error: %s\n", this->_connect->errstr);
  23. return 0;
  24. }
  25. return 1;
  26. }
  27. std::string get(std::string key)
  28. {
  29. this->_reply = (redisReply*)redisCommand(this->_connect, "GET %s", key.c_str());
  30. std::string str = this->_reply->str;
  31. freeReplyObject(this->_reply);
  32. return str;
  33. }
  34. void set(std::string key, std::string value)
  35. {
  36. redisCommand(this->_connect, "SET %s %s", key.c_str(), value.c_str());
  37. }
  38. private:
  39. redisContext* _connect;
  40. redisReply* _reply;
  41. };
  42. #endif //_REDIS_H_

创建redis.cpp


 
  1. #include "redis.h"
  2. int main()
  3. {
  4. Redis *r = new Redis();
  5. if(!r->connect("127.0.0.1", 6379))
  6. {
  7. printf("connect error!\n");
  8. return 0;
  9. }
  10. r->set("name", "Andy");
  11. printf("Get the name is %s\n", r->get("name").c_str());
  12. delete r;
  13. return 0;
  14. }

编写Makefile文件


 
  1. redis: redis.cpp redis.h
  2. g++ redis.cpp -o redis -L/usr/ local/lib/ -lhiredis
  3. clean:
  4. rm redis.o redis

进行编译

make
 

或者命令行执行

g++ redis.cpp -o redis -L/usr/local/lib/ -lhiredis
 

运行如果出现找不到动态链接库

在/etc/ld.so.conf.d/目录下新建文件usr-libs.conf,内容是:/usr/local/lib
 

最后执行


参考
http://blog.csdn.net/achelloworld/article/details/41598389?utm_source=tuicool&utm_medium=referral




FROM:http://www.jianshu.com/p/11f4c7c71953
  •                     <li class="tool-item tool-active is-like "><a href="javascript:;"><svg class="icon" aria-hidden="true">
                            <use xlink:href="#csdnc-thumbsup"></use>
                        </svg><span class="name">点赞</span>
                        <span class="count">2</span>
                        </a></li>
                        <li class="tool-item tool-active is-collection "><a href="javascript:;" data-report-click="{&quot;mod&quot;:&quot;popu_824&quot;}"><svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-csdnc-Collection-G"></use>
                        </svg><span class="name">收藏</span></a></li>
                        <li class="tool-item tool-active is-share"><a href="javascript:;" data-report-click="{&quot;mod&quot;:&quot;1582594662_002&quot;}"><svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-csdnc-fenxiang"></use>
                        </svg>分享</a></li>
                        <!--打赏开始-->
                                                <!--打赏结束-->
                                                <li class="tool-item tool-more">
                            <a>
                            <svg t="1575545411852" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5717" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M179.176 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5718"></path><path d="M509.684 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5719"></path><path d="M846.175 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5720"></path></svg>
                            </a>
                            <ul class="more-box">
                                <li class="item"><a class="article-report">文章举报</a></li>
                            </ul>
                        </li>
                                            </ul>
                </div>
                            </div>
            <div class="person-messagebox">
                <div class="left-message"><a href="https://blog.csdn.net/zwz1984">
                    <img src="https://profile.csdnimg.cn/6/1/2/3_zwz1984" class="avatar_pic" username="zwz1984">
                                            <img src="https://g.csdnimg.cn/static/user-reg-year/1x/12.png" class="user-years">
                                    </a></div>
                <div class="middle-message">
                                        <div class="title"><span class="tit"><a href="https://blog.csdn.net/zwz1984" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;}" target="_blank">追梦人0325</a></span>
                                            </div>
                    <div class="text"><span>发布了14 篇原创文章</span> · <span>获赞 25</span> · <span>访问量 16万+</span></div>
                </div>
                                <div class="right-message">
                                            <a href="https://im.csdn.net/im/main.html?userName=zwz1984" target="_blank" class="btn btn-sm btn-red-hollow bt-button personal-letter">私信
                        </a>
                                                            <a class="btn btn-sm  bt-button personal-watch" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;}">关注</a>
                                    </div>
                            </div>
                    </div>
    </article>
    
<script>
$("#blog_detail_zk_collection").click(function(){
    window.csdn.articleCollection()
})
        <div id="dmp_ad_58"><div id="kp_box_58" data-pid="58"><script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

        <a id="commentBox" name="commentBox"></a>
还能输入1000个字符
<div class="comment-list-container" style="display: block;">
	<a id="comments"></a>
	<div class="comment-list-box"><ul class="comment-list"><li class="comment-line-box d-flex" data-commentid="10326206" data-replyname="qq_43684922">      <a target="_blank" href="https://me.csdn.net/qq_43684922"><img src="https://profile.csdnimg.cn/E/E/B/3_qq_43684922" username="qq_43684922" alt="qq_43684922" class="avatar"></a>        <div class="right-box ">          <div class="new-info-box clearfix">            <a target="_blank" href="https://me.csdn.net/qq_43684922"><span class="name ">想成为大程序员的小程序员</span></a><span class="date" title="2019-08-05 18:18:21">6个月前</span><span class="floor-num"></span><span class="new-comment" style="display:inline-block;margin-top:0px">好的</span><span class="new-opt-box"><a class="btn btn-link-blue btn-report" data-type="report">举报</a><a class="btn btn-link-blue btn-reply" data-type="reply">回复</a></span></div><div class="comment-like " data-commentid="10326206"><svg t="1569296798904" class="icon " viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5522" width="200" height="200"><path d="M726.016 906.666667h-348.586667a118.016 118.016 0 0 1-116.992-107.904l-29.013333-362.666667A117.589333 117.589333 0 0 1 348.458667 309.333333H384c126.549333 0 160-104.661333 160-160 0-51.413333 39.296-88.704 93.397333-88.704 36.906667 0 71.68 18.389333 92.928 49.194667 26.88 39.04 43.178667 111.658667 12.714667 199.509333h95.530667a117.418667 117.418667 0 0 1 115.797333 136.106667l-49.28 308.522667a180.608 180.608 0 0 1-179.072 152.704zM348.458667 373.333333l-4.48 0.170667a53.461333 53.461333 0 0 0-48.768 57.472l29.013333 362.666667c2.218667 27.52 25.6 49.024 53.205333 49.024h348.544a116.949333 116.949333 0 0 0 115.925334-98.816l49.322666-308.736a53.418667 53.418667 0 0 0-52.650666-61.781334h-144.085334a32 32 0 0 1-28.458666-46.634666c45.909333-89.130667 28.885333-155.434667 11.562666-180.522667a48.981333 48.981333 0 0 0-40.192-21.504c-6.912 0-29.397333 1.792-29.397333 24.704 0 111.317333-76.928 224-224 224h-35.541333zM170.624 906.666667a32.042667 32.042667 0 0 1-31.872-29.44l-42.666667-533.333334a32.042667 32.042667 0 0 1 29.354667-34.474666c17.066667-1.408 33.024 11.733333 34.432 29.354666l42.666667 533.333334a32.042667 32.042667 0 0 1-31.914667 34.56z" p-id="5523"></path></svg><span></span></div></div></li></ul></div>
	<div id="commentPage" class="pagination-box d-none" style="display: block;"><div id="Paging_05951511467653217" class="ui-paging-container"><ul><li class="js-page-first js-page-action ui-pager ui-pager-disabled"></li><li class="js-page-prev js-page-action ui-pager ui-pager-disabled">上一页</li><li data-page="1" class="ui-pager focus">1</li><li class="js-page-next js-page-action ui-pager ui-pager-disabled">下一页</li><li class="js-page-last js-page-action ui-pager ui-pager-disabled"></li></ul></div></div>
	
</div>
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_59" data-pid="59"><script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

C++操作Redis数据库_晴天的专栏-CSDN博客

1-9

c++ 操作 redis 示例_qq_38391187的博客-CSDN博客

1-17

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_60" data-pid="60"><script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

c++使用redis个人总结_witto_sdy的专栏-CSDN博客

1-6

C++操作Redis数据库_渡辺麻友-CSDN博客

2-1

		<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/zwz1984/article/details/54890785&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/zwz1984/article/details/54890785&quot;}"><a href="https://blog.csdn.net/ArkGod" target="_blank"><img src="https://profile.csdnimg.cn/8/A/B/3_arkgod" username="ArkGod" alt="ArkShen" title="ArkShen"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/zwz1984/article/details/54890785&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="ArkGod" data-nick="ArkShen">关注</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/zwz1984/article/details/54890785&quot;}"><a href="https://blog.csdn.net/ArkGod" target="_blank"><h5 class="oneline" title="ArkShen">ArkShen</h5></a></span>  <p></p><p class="article-num" title="17篇文章"> 17篇文章</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/zwz1984/article/details/54890785&quot;}"><a href="https://blog.csdn.net/ClamReason" target="_blank"><img src="https://profile.csdnimg.cn/E/F/1/3_clamreason" username="ClamReason" alt="CalmReason" title="CalmReason"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/zwz1984/article/details/54890785&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="ClamReason" data-nick="CalmReason">关注</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/zwz1984/article/details/54890785&quot;}"><a href="https://blog.csdn.net/ClamReason" target="_blank"><h5 class="oneline" title="CalmReason">CalmReason</h5></a></span>  <p></p><p class="article-num" title="578篇文章"> 578篇文章</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/zwz1984/article/details/54890785&quot;}"><a href="https://blog.csdn.net/witto_sdy" target="_blank"><img src="https://profile.csdnimg.cn/8/F/E/3_witto_sdy" username="witto_sdy" alt="witto_sdy" title="witto_sdy"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/zwz1984/article/details/54890785&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="witto_sdy" data-nick="witto_sdy">关注</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/zwz1984/article/details/54890785&quot;}"><a href="https://blog.csdn.net/witto_sdy" target="_blank"><h5 class="oneline" title="witto_sdy">witto_sdy</h5></a></span>  <p></p><p class="article-num" title="84篇文章"> 84篇文章</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/zwz1984/article/details/54890785&quot;}"><a href="https://blog.csdn.net/xiaojun111111" target="_blank"><img src="https://profile.csdnimg.cn/1/B/8/3_xiaojun111111" username="xiaojun111111" alt="xiaojun11-" title="xiaojun11-"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/zwz1984/article/details/54890785&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="xiaojun111111" data-nick="xiaojun11-">关注</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/zwz1984/article/details/54890785&quot;}"><a href="https://blog.csdn.net/xiaojun111111" target="_blank"><h5 class="oneline" title="xiaojun11-">xiaojun11-</h5></a></span>  <p></p><p class="article-num" title="683篇文章"> 683篇文章</p><p class="article-num" title="排名:2000+"> 排名:2000+</p><p></p></div></div></div></div>
				</div>
			</div>
		</div>
	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/fanyun_01/article/details/66050241&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;5&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/fanyun_01/article/details/66050241&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;5&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/fanyun_01/article/details/66050241&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:4,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/fanyun_01/article/details/66050241&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:4,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/fanyun_01/article/details/66050241" target="_blank">              		<h4 class="text-truncate oneline" style="width: 624px;"><em>C</em>++<em>操作</em><em>Redis</em>数据库 - fanyun的博客 - <em>C</em>SDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">11-11</span>                    </p>                  </div>                </a>            	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_33387378/article/details/90293141&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;6&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_33387378/article/details/90293141&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;6&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_33387378/article/details/90293141&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:5,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_33387378/article/details/90293141&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:5,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/weixin_33387378/article/details/90293141" target="_blank">              		<h4 class="text-truncate oneline" style="width: 641px;"><em>Redis</em><em>简单</em>实例_weixin_33387378的博客-<em>C</em>SDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">1-8</span>                    </p>                  </div>                </a>            	</div>

C++连接redis示例_赶路人儿-CSDN博客

1-11

推荐一款C++连接Redis的开源库_xungen的博客-CSDN博客

1-6

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_61" data-pid="61"><script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

C++ 操作数据库 经典案例_sky的博客-CSDN博客

1-21

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_62" data-pid="62"><script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

花了20分钟,给女朋友们写了一个web版群聊程序

11-28 阅读数 29万+

参考博客[1]https://www.byteslounge.com/tutorials/java-ee-html5-websocket-example 博文

程序员必备的8个学习工具

12-07 阅读数 1万+

取其精华,去其糟粕 博文 来自: dotNet全栈开发

毕业5年,我问遍了身边的大佬,总结了他们的学习方法

02-13 阅读数 1万+

我问了身边10个大佬,总结了他们的学习方法,原来成功都是有迹可循的。 博文 来自: 敖丙

                <div class="recommend-item-box type_hot_word">
                <div class="content clearfix" style="width: 712px;">
                    <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_1e/MtTagg1sLWRvd25sb2Fk.html" target="_blank">
                            c#判断数字不得为负数</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_19/MtTagg2sLWRvd25sb2Fk.html" target="_blank">
                            c#帧和帧协议</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_13/MtTagg3sLWRvd25sb2Fk.html" target="_blank">
                            c#算偏移值</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_1a/MtTagg5sLWRvd25sb2Fk.html" target="_blank">
                            c# 在枚举中</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_10/MtTakgxsLWRvd25sb2Fk.html" target="_blank">
                            c#6 字符串 插值</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_15/MtTakgysLWRvd25sb2Fk.html" target="_blank">
                            c#程序中的占位符标签</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_1b/MtTakgzsLWRvd25sb2Fk.html" target="_blank">
                            c#监听数组变化</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_1a/MtTakg0sLWRvd25sb2Fk.html" target="_blank">
                            c# vlc</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_10/MtTakg1sLWRvd25sb2Fk.html" target="_blank">
                            c#索引实现</a>
                        </span>
                                                    <span>
                            <a href="https://www.csdn.net/gather_10/MtTakg2sLWRvd25sb2Fk.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>
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页