CINXE.COM
字符串 - 标签 - 腾讯云开发者社区-腾讯云
<!DOCTYPE html><html munual-autotracker-init="" qct-pv-id="RFtlLG8-neB900u7n6YrZ" qct-ip="8.222.208.146"><head><meta charSet="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><title>字符串 - 标签 - 腾讯云开发者社区-腾讯云</title><meta name="keywords" content="字符串,云+社区标签"/><meta name="subjectTime" content="2023-03-14 11:35:00"/><meta name="description" content=""/><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, viewport-fit=cover"/><meta name="format-detection" content="telephone=no"/><link rel="canonical" href="https://cloud.tencent.com/developer/tag/17603"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/gateway/portal/css/global-20209142343.css"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/qcloud/ui/cloud-community/build/base/base-202410111735.css"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/community-pc/build/AskDialog/AskDialog-202204021635.css?max_age=31536000"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/community-pc/build/AskDialog/AskDialog-202204021635.css?max_age=31536000"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/qcloud/ui/community-pc/build/base/base-202410211524.css"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/qcloud/ui/cloud-community/build/base/base-202410111735.css"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/community-pc/build/Tag/Tag-202105140928.css?max_age=31536000"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/community/portal/css/markdown-201810241044.css?max_age=31536000"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/qcloud/draft-master/dist/draft-master-v2.0.142.d4s2ddo9sb.css?max_age=31536000"/><style media="screen">@supports (padding:max(0px)){.set-safe-area .com-main{bottom:calc(max(12px,constant(safe-area-inset-bottom)) + 50px);bottom:calc(max(12px,env(safe-area-inset-bottom)) + 50px)}.set-safe-area .com-main-simple-sec,.set-safe-area .com-main.without-tab-ft,.set-safe-area .com-main.without-ft{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}.set-safe-area .com-main-sec{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}.set-safe-area .com-m-footer,.set-safe-area .sa-fixed-btns{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}.set-safe-area .com-mobile-body{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}}@supports (padding:max(0px)){.set-safe-area .support-wrap,.set-safe-area div.body{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}.set-safe-area .com-responsive-no-ft div.body{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}}.doc-con .J-docShareModal{display: none;} .doc-con .J-docShareCopyTipModalMB{display: none} .with-focus+.com-main-simple-sec, .with-focus+.com-main,.with-focus+.com-body,.with-focus+.qa-body{top:100px} .qa-detail-ask-panel:after{display:none!important;} .sa-fixed-btns .c-btn-weak{background-color: #fff;} .qa-r-editor.draft-editor-host.rno-markdown{height: 290px;overflow-y:auto;} .uc-achievement{line-height:24px;margin-bottom:5px;white-space: initial;overflow:visible;text-overflow:initial} .uc-achievement .uc-achievement-icon{top:0;margin-top:0;}</style></head><body style="position:initial"><div id="react-root" class=""><div class="comp-tag-detail"><div class="cdc-header is-fixed"><div class="cdc-header__placeholder"></div><div class="cdc-header__inner"><div class="cdc-header__top"><div class="cdc-header__top-left"><a href="/?from=20060&from_column=20060" target="_blank" class="cdc-header__top-logo"><i>腾讯云</i></a><div class="cdc-header__top-line"></div><a href="/developer" class="cdc-header__top-logo community"><i>开发者社区</i></a><div class="cdc-header__activity"><div id="cloud-header-product-container"></div></div></div><div class="cdc-header__top-operates"><a href="/document/product?from=20702&from_column=20702" target="_blank" class="cdc-header__link">文档</a><a href="/voc/?from=20703&from_column=20703" target="_blank" class="cdc-header__link">建议反馈</a><a href="https://console.cloud.tencent.com?from=20063&from_column=20063" target="_blank" class="cdc-header__link" track-click="{"areaId":102001,"subAreaId":1}">控制台</a><div class="cdc-header__account"><div class="cdc-header__account-inner"><button class="cdc-btn cdc-header__account-btn cdc-btn--primary">登录/注册</button></div></div></div></div><div class="cdc-header__bottom"><div class="cdc-header__bottom-nav"><a href="/developer" class="cdc-header__bottom-home">首页</a><div class="cdc-header__nav-list"><div class="cdc-header__nav-item">学习</div><div class="cdc-header__nav-item">活动</div><div class="cdc-header__nav-item">专区</div><div class="cdc-header__nav-item">工具</div></div><a href="/tvp?from=20154&from_column=20154" class="cdc-header__tvp" target="_blank">TVP</a><div class="cdc-header__activity"><a class="cdc-header__activity-tit" href="/act?from=20061&from_column=20061" target="_blank">最新优惠活动<div class="cdc-badge"><div class="cdc-badge-inner"><div class="cdc-badge-text"></div></div></div></a></div><div id="community-header-product-container"></div></div><div class="cdc-header__bottom-operates"><div class="cdc-header__search"><div class="cdc-search__wrap"><div class="cdc-search"><span class="cdc-search__text">文章/答案/技术大牛</span><button class="cdc-search__btn">搜索<i class="cdc-search__i search"></i></button></div><div class="cdc-search__dropdown"><div class="cdc-search__bar"><input type="text" class="cdc-search__bar-input" placeholder="文章/答案/技术大牛" value=""/><div class="cdc-search__bar-btns"><button class="cdc-search__btn">搜索<i class="cdc-search__i search"></i></button><button class="cdc-search__btn">关闭<i class="cdc-search__i clear"></i></button></div></div></div></div></div><div class="cdc-header__create"><span class="cdc-header__create-btn not-logged"><span class="cdc-svg-icon-con"><span class="cdc-svg-icon" style="line-height:1;color:#0052D9;width:16px;height:16px"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"><path d="M14.2466 12.0145C14.1698 13.6258 12.8381 14.9131 11.2129 14.9131H11.1579H4.0927H4.03772C2.4125 14.9131 1.08014 13.6258 1.00334 12.0145H1V11.8668V4.07213V4.04627V3.89922H1.00334C1.08014 2.28732 2.4125 1 4.03772 1H9.6473V1.00069H10.0786L8.7688 2.10773H8.43888H7.7916H6.37904H4.03772C2.97234 2.10773 2.10445 2.9777 2.10445 4.04629V4.41869V4.4472V6.39498V11.4269V11.4309V11.8668C2.10445 12.9354 2.97234 13.8053 4.03772 13.8053H6.37904H8.87153H11.2129C12.2782 13.8053 13.1461 12.9355 13.1461 11.8668V11.466V11.454V9.5181V6.39364L14.2506 5.3051V11.8668V12.0145H14.2466ZM10.4324 7.15226L9.63146 7.99761C9.36577 8.2693 8.69326 8.95104 8.48066 9.17631C8.26726 9.40288 8.09039 9.58901 7.95061 9.73544C7.81079 9.88188 7.72667 9.96597 7.70083 9.98656C7.63321 10.0488 7.55703 10.1144 7.47022 10.1846C7.38412 10.2542 7.29404 10.3099 7.20063 10.3516C7.10722 10.4007 6.97072 10.459 6.79049 10.5305C6.61028 10.6001 6.42213 10.6676 6.22468 10.7339C6.02792 10.8002 5.84109 10.8571 5.66484 10.9061C5.48795 10.9538 5.3561 10.9863 5.2693 11.0009C5.08977 11.0214 4.96988 10.993 4.90956 10.9168C4.84931 10.8405 4.83276 10.7107 4.85924 10.5312C4.87315 10.4331 4.9043 10.292 4.95468 10.1078C5.00431 9.92297 5.05802 9.7315 5.11431 9.53341C5.1713 9.33526 5.22629 9.15179 5.27926 8.98484C5.33297 8.8179 5.37599 8.7026 5.40978 8.64032C5.44953 8.54357 5.49463 8.45413 5.54495 8.37399C5.59465 8.29379 5.66616 8.20503 5.75965 8.10766C5.79934 8.06588 5.89281 7.96649 6.03988 7.81018C6.18624 7.65311 6.80114 7.02774 7.02104 6.79783L7.75117 6.03524L8.56212 5.1899L10.6345 3.02466L12.5214 4.93874L10.4324 7.15226ZM13.816 3.58581C13.7166 3.68987 13.6272 3.78064 13.5483 3.85883C13.4694 3.93703 13.4006 4.0066 13.3423 4.06686C13.276 4.13643 13.2144 4.19738 13.1561 4.24903L11.2785 2.33569C11.3785 2.24025 11.4965 2.12565 11.6336 1.99115C11.7707 1.85668 11.8854 1.75061 11.9761 1.67242C12.0934 1.57708 12.2133 1.51013 12.3385 1.47109C12.4525 1.43529 12.5644 1.41805 12.6751 1.41876H12.7056C12.7665 1.42139 12.8268 1.42729 12.8851 1.43724C12.8838 1.4366 12.8811 1.43724 12.8798 1.4366C12.8811 1.4366 12.8838 1.4366 12.8851 1.43724C13.1376 1.48428 13.4019 1.62009 13.6265 1.83743C13.7511 1.95871 13.8524 2.09382 13.9259 2.23296C14.0346 2.43834 14.0863 2.65304 14.0763 2.8491C14.0763 2.87294 14.0783 2.89748 14.0783 2.92201C14.0783 3.03529 14.0571 3.14789 14.0154 3.26055C13.9737 3.37314 13.9067 3.48185 13.816 3.58581Z" fill="#0052D9"></path></svg></span></span>发布<span class="cdc-svg-icon-con cdc-header__create-btn-arrow"><span class="cdc-svg-icon" style="line-height:1;color:inherit;width:16px;height:16px"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"><path d="M8.16377 4L9.57798 5.41421L14.5277 10.364L13.1135 11.7782L8.1638 6.829L3.21402 11.7782L1.7998 10.364L8.16377 4Z"></path></svg></span></span></span></div></div></div></div></div><div class="cdc-m-header with-focus is-fixed"><div class="cdc-m-header__placeholder"></div><div class="cdc-m-header__inner"><div class="cdc-m-guider-banner is-sticky"><div class="cdc-m-guider-banner__guide-mvp" track-exposure="{"areaId":118000}" track-click="{"areaId":118000}"><div class="cdc-m-guider-banner__guide-mvp-text">精选内容/技术社群/优惠产品,<em>尽在小程序</em></div><div class="cdc-m-guider-banner__guide-mvp-btn">立即前往</div></div></div><div class="cdc-m-header__main"><div class="cdc-m-header__trigger"></div><div class="cdc-m-header__logo"><i class="cdc-m-header__logo-icon"></i></div><div class="cdc-m-header__search"><i class="cdc-m-header__search-icon"></i></div><div class="cdc-m-header__operate"><span class="cdc-m-header__operate-icon"></span></div></div></div></div><div class="J-body com-body max-width"><div class="com-crumb"><div class="com-inner"><a href="/developer" class="crumb-item">首页</a><span class="crumb-split"></span><a href="/developer/tags" class="crumb-item">标签</a><span class="crumb-split"></span><span class="crumb-item current">字符串</span></div></div><div track-click="{"areaId":{"areaId":113006}}" track-exposure="{"areaId":{"areaId":113006}}" class="com-tag-intro"><i class="intro-bg"></i><h2 class="intro-title"><em>#</em>字符串</h2><p class="intro-desc"></p><div class="intro-btns"><button type="button" class="c-btn" track-click="{"elementId":1}">关注</button></div></div><div class="com-2-layout"><div class="layout-main"><div class="com-tab large tag-tab"><div class="com-tab-hd large"><ul class="com-tab-ctrl"><li class="com-tab-item actived"><a href="javascript:;">专栏文章<span class="num">(6.5K)</span></a></li><li class="com-tab-item"><a href="/developer/tag/17603?entry=video">技术视频<span class="num">(0)</span></a></li><li class="com-tab-item"><a href="/developer/tag/17603?entry=ask">互动问答<span class="num">(238)</span></a></li></ul></div><div class="com-tab-bd"><com class="com-tab-panel"><div class="com-article-panel-v2-list"><section class="com-article-panel-v2 higher"><a href="/developer/article/2472408" track-click="{"areaId":113001,"objectType":"article","objectId":2472408}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2472408}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">【项目日记】仿mudou的高并发服务器 --- 实现HTTP服务器</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17270?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17270}" class="com-tag-v2">高并发</a><a href="/developer/tag/17440?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17440}" class="com-tag-v2">数据</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/10620?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10620}" class="com-tag-v2">http</a><a href="/developer/tag/17267?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17267}" class="com-tag-v2">服务器</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-10927293/aa76140fac5034e6b2837b5bb493f702.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/10927293" track-click="{"objectType":"user","objectId":10927293}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/avatar/27293.png?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/10927293" track-click="{"objectType":"user","objectId":10927293}" target="_blank" class="author-info name">叫我龙翔</a><span class="author-info time"><time dateTime="2024-11-30 12:42:21" title="2024-11-30 12:42:21"> <span>23</span>小时前<span class="com-v-box">2024-11-30 12:42:21</span></time></span></div></div></div><p class="com-article-panel-v2-des">在HTTP服务器处理中,经常需要一些常用操作,比如切分字符串,编码转换,通过状态码找到对应状态解析… Util工具类就是用来实现这些功能的类!</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>19</span><span class="com-opt-link link-like"><i class="com-i-like"></i>0</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2472408.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2472305" track-click="{"areaId":113001,"objectType":"article","objectId":2472305}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2472305}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">某依框架定时任务RCE分析与思考</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17353?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17353}" class="com-tag-v2">框架</a><a href="/developer/tag/17369?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17369}" class="com-tag-v2">漏洞</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/17241?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17241}" class="com-tag-v2">定时任务</a><a href="/developer/tag/17264?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17264}" class="com-tag-v2">服务</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-7991314/1b0b49bd78ef401184d4cc4b25098d8c.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/7991314" track-click="{"objectType":"user","objectId":7991314}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-7991314/87c0d14c0db279118a4ad4feed38e2b2.jpeg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/7991314" track-click="{"objectType":"user","objectId":7991314}" target="_blank" class="author-info name">叔牙</a><div class="c-bubble-trigger com-verification"><i class="verified"></i><div class="c-bubble c-bubble-bottom"><div class="c-bubble-inner" style="padding:8px 10px"><p>BIGO | 工程师 (已认证)</p></div></div></div><span class="author-info time"><time dateTime="2024-11-29 17:34:19" title="2024-11-29 17:34:19"> <span>1</span>天前<span class="com-v-box">2024-11-29 17:34:19</span></time></span></div></div></div><p class="com-article-panel-v2-des">该框架在v4.6.2及以下,对调用目标字符串限制不是很严格,可以直接随意编辑。v4.6.2~4.7.1新增黑名单限制调用字符串</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>38</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2472305.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2472303" track-click="{"areaId":113001,"objectType":"article","objectId":2472303}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2472303}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">.NET 中50种常见错误使用方法及推荐用法</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17540?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17540}" class="com-tag-v2">异常</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/15429?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":15429}" class="com-tag-v2">public</a><a href="/developer/tag/17189?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17189}" class="com-tag-v2">编码</a><a href="/developer/tag/17205?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17205}" class="com-tag-v2">测试</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-7499234/0a29e07d09a70e13fee7eff84639a404.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/7499234" track-click="{"objectType":"user","objectId":7499234}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-7499234/c96c64adf4850c3af5eb82a172828dcb.jpeg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/7499234" track-click="{"objectType":"user","objectId":7499234}" target="_blank" class="author-info name">郑子铭</a><span class="author-info time"><time dateTime="2024-11-29 17:31:24" title="2024-11-29 17:31:24"> <span>1</span>天前<span class="com-v-box">2024-11-29 17:31:24</span></time></span></div></div></div><p class="com-article-panel-v2-des">使用字符串插值 () 实现更清晰、可读性的字符串格式,从而降低复杂字符串出错的风险。$"..."</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>51</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2472303.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2472208" track-click="{"areaId":113001,"objectType":"article","objectId":2472208}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2472208}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">从认识String类,到走进String类的世界</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17509?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17509}" class="com-tag-v2">线程安全</a><a href="/developer/tag/17525?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17525}" class="com-tag-v2">性能</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/16276?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":16276}" class="com-tag-v2">string</a><a href="/developer/tag/17248?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17248}" class="com-tag-v2">对象</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-11316136/cd42155cd7462e03a705c26ce9a1cd03.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11316136" track-click="{"objectType":"user","objectId":11316136}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/avatar/16136.png?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11316136" track-click="{"objectType":"user","objectId":11316136}" target="_blank" class="author-info name">用户11316136</a><span class="author-info time"><time dateTime="2024-11-29 11:27:12" title="2024-11-29 11:27:12"> <span>2</span>天前<span class="com-v-box">2024-11-29 11:27:12</span></time></span></div></div></div><p class="com-article-panel-v2-des">substring(int beginIndex):返回一个新的字符串,它是此字符串从beginIndex开始截取到字符串结尾的一个子字符串。</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>17</span><span class="com-opt-link link-like"><i class="com-i-like"></i>0</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2472208.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2472124" track-click="{"areaId":113001,"objectType":"article","objectId":2472124}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2472124}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">日期字符格式yyyyMMddHHmmss转换字符串或LocalDateTime对象</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/12941?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":12941}" class="com-tag-v2">date</a><a href="/developer/tag/16237?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":16237}" class="com-tag-v2">static</a><a href="/developer/tag/16276?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":16276}" class="com-tag-v2">string</a><a href="/developer/tag/17248?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17248}" class="com-tag-v2">对象</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/9679348" track-click="{"objectType":"user","objectId":9679348}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/5c27bee623807f821661100a4241c944.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/9679348" track-click="{"objectType":"user","objectId":9679348}" target="_blank" class="author-info name">oktokeep</a><span class="author-info time"><time dateTime="2024-11-29 07:54:44" title="2024-11-29 07:54:44"> <span>2</span>天前<span class="com-v-box">2024-11-29 07:54:44</span></time></span></div></div></div><p class="com-article-panel-v2-des">日期字符格式yyyyMMddHHmmss转换字符串或LocalDateTime对象</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>84</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2472124.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2472096" track-click="{"areaId":113001,"objectType":"article","objectId":2472096}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2472096}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">2024-11-27:字符串的分数。用go语言,给定一个字符串 s,我们可以定义其“分数”为相邻字符的 ASCII 码差值绝对值</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17187?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17187}" class="com-tag-v2">遍历</a><a href="/developer/tag/17462?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17462}" class="com-tag-v2">索引</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/10665?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10665}" class="com-tag-v2">存储</a><a href="/developer/tag/10941?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10941}" class="com-tag-v2">ascii</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-7620466/f30a08dc2d1bbf9c76d064a74dd90a13.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/7620466" track-click="{"objectType":"user","objectId":7620466}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/4b93323c1bab6e531362f6c37b49d6b5.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/7620466" track-click="{"objectType":"user","objectId":7620466}" target="_blank" class="author-info name">福大大架构师每日一题</a><div class="c-bubble-trigger com-verification"><i class="verified"></i><div class="c-bubble c-bubble-bottom"><div class="c-bubble-inner" style="padding:8px 10px"><p>北京动视元科技有限公司 | 研发工程师 (已认证)</p></div></div></div><span class="author-info time"><time dateTime="2024-11-28 21:19:26" title="2024-11-28 21:19:26"> <span>2</span>天前<span class="com-v-box">2024-11-28 21:19:26</span></time></span></div></div></div><p class="com-article-panel-v2-des">2024-11-27:字符串的分数。用go语言,给定一个字符串 s,我们可以定义其“分数”为相邻字符的 ASCII 码差值绝对值的总和。</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>46</span><span class="com-opt-link link-like"><i class="com-i-like"></i>2</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2472096.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471896" track-click="{"areaId":113001,"objectType":"article","objectId":2471896}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471896}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">Discourse 使用 DiscourseConnect 调用接口 admin/users/sync_sso 422 错误</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/16221?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":16221}" class="com-tag-v2">sso</a><a href="/developer/tag/17329?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17329}" class="com-tag-v2">接口</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/11720?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":11720}" class="com-tag-v2">admin</a><a href="/developer/tag/12431?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":12431}" class="com-tag-v2">builder</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-4532411/d5da0040e5956a84c1d501ee40063bc0.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/4532411" track-click="{"objectType":"user","objectId":4532411}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/281e6581cc79f5ab183996a365785b1d.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/4532411" track-click="{"objectType":"user","objectId":4532411}" target="_blank" class="author-info name">HoneyMoose</a><span class="author-info time"><time dateTime="2024-11-28 09:16:21" title="2024-11-28 09:16:21"> <span>3</span>天前<span class="com-v-box">2024-11-28 09:16:21</span></time></span></div></div></div><p class="com-article-panel-v2-des">最近在调试 Java 代码的时候调用上面的 SSO 同步接口,Discourse 返回的错误信息为:</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>58</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471896.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471822" track-click="{"areaId":113001,"objectType":"article","objectId":2471822}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471822}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">字符串匹配算法</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/10082133" track-click="{"objectType":"user","objectId":10082133}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/9268c4085847b62cc6363e6c8634bdb1.png?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/10082133" track-click="{"objectType":"user","objectId":10082133}" target="_blank" class="author-info name">ge3m0r</a><span class="author-info time"><time dateTime="2024-11-27 21:12:49" title="2024-11-27 21:12:49"> <span>3</span>天前<span class="com-v-box">2024-11-27 21:12:49</span></time></span></div></div></div><p class="com-article-panel-v2-des">字符串的匹配的场景一般是这样的,简单说就是一个大的字符串中有没有一个字符串匹配,我们把大的字符串叫做主串,而匹配最后小的字符串叫做模式串.</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>68</span><span class="com-opt-link link-like"><i class="com-i-like"></i>0</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471822.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471718" track-click="{"areaId":113001,"objectType":"article","objectId":2471718}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471718}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">惊爆!48 个超实用 JavaScript 代码片段,收藏必备!</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17290?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17290}" class="com-tag-v2">函数</a><a href="/developer/tag/17457?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17457}" class="com-tag-v2">数组</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/10170?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10170}" class="com-tag-v2">javascript</a><a href="/developer/tag/17234?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17234}" class="com-tag-v2">递归</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-6490225/e213e238dfdfe045155deaf6560124ab.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/6490225" track-click="{"objectType":"user","objectId":6490225}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-6490225/pnuezk42la.jpeg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/6490225" track-click="{"objectType":"user","objectId":6490225}" target="_blank" class="author-info name">测试开发技术</a><span class="author-info time"><time dateTime="2024-11-27 15:06:46" title="2024-11-27 15:06:46"> <span>3</span>天前<span class="com-v-box">2024-11-27 15:06:46</span></time></span></div></div></div><p class="com-article-panel-v2-des">日常工作上,大家经常都会保存一些自己常用的代码片段,比如数字每3位添加逗号、日期格式化、解析location.query或location.hash为JSON对...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>89</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471718.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471474" track-click="{"areaId":113001,"objectType":"article","objectId":2471474}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471474}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">EXCEL截取某一列从第一个字符开始到特定字符结束的字符串到新的一列</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17440?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17440}" class="com-tag-v2">数据</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/13299?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":13299}" class="com-tag-v2">excel</a><a href="/developer/tag/17189?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17189}" class="com-tag-v2">编码</a><a href="/developer/tag/17210?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17210}" class="com-tag-v2">产品</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-10562612/270736dac6264f2029918b73594d18c5.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/10562612" track-click="{"objectType":"user","objectId":10562612}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/d56370c758138980bea1db221e7f99ec.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/10562612" track-click="{"objectType":"user","objectId":10562612}" target="_blank" class="author-info name">翎野君</a><span class="author-info time"><time dateTime="2024-11-27 08:49:13" title="2024-11-27 08:49:13"> <span>4</span>天前<span class="com-v-box">2024-11-27 08:49:13</span></time></span></div></div></div><p class="com-article-panel-v2-des">我们需要在B1单元格输入公式“=LEFT(A1,SEARCH("-",A1)-1)”然后选中B1至B4单元格,按“CTRL+D”向下填充,就可以得出其它几行“-...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>119</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471474.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471466" track-click="{"areaId":113001,"objectType":"article","objectId":2471466}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471466}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">Mysql的聚合函数的详细使用方法</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17290?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17290}" class="com-tag-v2">函数</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/14827?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":14827}" class="com-tag-v2">mysql</a><a href="/developer/tag/15383?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":15383}" class="com-tag-v2">product</a><a href="/developer/tag/15899?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":15899}" class="com-tag-v2">select</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/9679348" track-click="{"objectType":"user","objectId":9679348}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/5c27bee623807f821661100a4241c944.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/9679348" track-click="{"objectType":"user","objectId":9679348}" target="_blank" class="author-info name">oktokeep</a><span class="author-info time"><time dateTime="2024-11-27 08:47:08" title="2024-11-27 08:47:08"> <span>4</span>天前<span class="com-v-box">2024-11-27 08:47:08</span></time></span></div></div></div><p class="com-article-panel-v2-des"></p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>106</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471466.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471459" track-click="{"areaId":113001,"objectType":"article","objectId":2471459}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471459}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">备战第16届蓝桥杯——常用字符串函数</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/16276?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":16276}" class="com-tag-v2">string</a><a href="/developer/tag/17248?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17248}" class="com-tag-v2">对象</a><a href="/developer/tag/17290?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17290}" class="com-tag-v2">函数</a><a href="/developer/tag/17382?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17382}" class="com-tag-v2">内存</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-2671013/ad284e1b7d4b88d8f1483d3395029650.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/2671013" track-click="{"objectType":"user","objectId":2671013}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/dc5912768ea294bec0c8b893df1caba9.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/2671013" track-click="{"objectType":"user","objectId":2671013}" target="_blank" class="author-info name">红目香薰</a><span class="author-info time"><time dateTime="2024-11-27 08:39:04" title="2024-11-27 08:39:04"> <span>4</span>天前<span class="com-v-box">2024-11-27 08:39:04</span></time></span></div></div></div><p class="com-article-panel-v2-des">String str1= “abc”; 在编译期,JVM会去常量池来查找是否存在“abc”,如果不存在,就在常量池中开辟一个空间来存储“abc”;如果存在,就不...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>70</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471459.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471297" track-click="{"areaId":113001,"objectType":"article","objectId":2471297}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471297}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">2024-11-25:满足距离约束且字典序最小的字符串。用go语言,给定一个字符串 s 和一个整数 k,我们需要定义一个函数 d</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/17187?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17187}" class="com-tag-v2">遍历</a><a href="/developer/tag/17188?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17188}" class="com-tag-v2">变量</a><a href="/developer/tag/17290?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17290}" class="com-tag-v2">函数</a><a href="/developer/tag/17457?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17457}" class="com-tag-v2">数组</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-7620466/338bdc48cd8f4d3acb94075c287500c0.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/7620466" track-click="{"objectType":"user","objectId":7620466}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/4b93323c1bab6e531362f6c37b49d6b5.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/7620466" track-click="{"objectType":"user","objectId":7620466}" target="_blank" class="author-info name">福大大架构师每日一题</a><div class="c-bubble-trigger com-verification"><i class="verified"></i><div class="c-bubble c-bubble-bottom"><div class="c-bubble-inner" style="padding:8px 10px"><p>北京动视元科技有限公司 | 研发工程师 (已认证)</p></div></div></div><span class="author-info time"><time dateTime="2024-11-26 15:45:43" title="2024-11-26 15:45:43"> <span>4</span>天前<span class="com-v-box">2024-11-26 15:45:43</span></time></span></div></div></div><p class="com-article-panel-v2-des">2024-11-25:满足距离约束且字典序最小的字符串。用go语言,给定一个字符串 s 和一个整数 k,我们需要定义一个函数 distance(s1, s2) ...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>50</span><span class="com-opt-link link-like"><i class="com-i-like"></i>2</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471297.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471270" track-click="{"areaId":113001,"objectType":"article","objectId":2471270}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471270}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">【C语言】深入解析自定义my_strlen函数的设计与实现细节</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17290?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17290}" class="com-tag-v2">函数</a><a href="/developer/tag/17382?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17382}" class="com-tag-v2">内存</a><a href="/developer/tag/17423?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17423}" class="com-tag-v2">设计</a><a href="/developer/tag/17590?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17590}" class="com-tag-v2">指针</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-11281638/165798b307ae1225329b0b55859ee701.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11281638" track-click="{"objectType":"user","objectId":11281638}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/03e5defe27a7e18b3f7ca2bcfea8a593.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11281638" track-click="{"objectType":"user","objectId":11281638}" target="_blank" class="author-info name">CSDN-Z</a><span class="author-info time"><time dateTime="2024-11-26 14:42:13" title="2024-11-26 14:42:13"> <span>4</span>天前<span class="com-v-box">2024-11-26 14:42:13</span></time></span></div></div></div><p class="com-article-panel-v2-des">在 C 语言中,字符串是以空字符 \0 作为结束符的。空字符用于标识字符串的终止,使得字符串处理函数(例如 strlen、strcpy 等)能够知道何时停止处理...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>80</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471270.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471269" track-click="{"areaId":113001,"objectType":"article","objectId":2471269}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471269}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">【C语言】字符串字面量的特殊性</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17215?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17215}" class="com-tag-v2">程序</a><a href="/developer/tag/17382?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17382}" class="com-tag-v2">内存</a><a href="/developer/tag/17457?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17457}" class="com-tag-v2">数组</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/10665?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10665}" class="com-tag-v2">存储</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-11281638/165798b307ae1225329b0b55859ee701.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11281638" track-click="{"objectType":"user","objectId":11281638}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/03e5defe27a7e18b3f7ca2bcfea8a593.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11281638" track-click="{"objectType":"user","objectId":11281638}" target="_blank" class="author-info name">CSDN-Z</a><span class="author-info time"><time dateTime="2024-11-26 14:40:43" title="2024-11-26 14:40:43"> <span>4</span>天前<span class="com-v-box">2024-11-26 14:40:43</span></time></span></div></div></div><p class="com-article-panel-v2-des">字符数组的另一个优点是可以动态调整。你可以将字符数组用作缓冲区来存储不同的字符串内容,这在编写需要灵活字符串处理的程序时非常方便。例如在实现字符串拼接、格式化等...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>132</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471269.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471255" track-click="{"areaId":113001,"objectType":"article","objectId":2471255}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471255}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">C++ String揭秘:写高效代码的关键</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/16276?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":16276}" class="com-tag-v2">string</a><a href="/developer/tag/17248?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17248}" class="com-tag-v2">对象</a><a href="/developer/tag/17382?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17382}" class="com-tag-v2">内存</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/10166?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10166}" class="com-tag-v2">c++</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11306053" track-click="{"objectType":"user","objectId":11306053}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/633ce1ce340d5a8ddf0b83feee2d0fb6.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11306053" track-click="{"objectType":"user","objectId":11306053}" target="_blank" class="author-info name">平凡之路.</a><span class="author-info time"><time dateTime="2024-11-26 14:14:36" title="2024-11-26 14:14:36"> <span>4</span>天前<span class="com-v-box">2024-11-26 14:14:36</span></time></span></div></div></div><p class="com-article-panel-v2-des">在C++编程中,字符串操作是不可避免的一部分。从简单的字符串拼接到复杂的文本处理,C++的string类为开发者提供了一种更高效、灵活且安全的方式来管理和操作字...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>103</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471255.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471204" track-click="{"areaId":113001,"objectType":"article","objectId":2471204}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471204}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">【Linux篇】Linux的基本指令 - 掌握这些基本指令就够了</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17559?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17559}" class="com-tag-v2">语法</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/10308?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10308}" class="com-tag-v2">linux</a><a href="/developer/tag/17459?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17459}" class="com-tag-v2">搜索</a><a href="/developer/tag/17506?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17506}" class="com-tag-v2">系统</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-11324199/456369fefeffcc5d4e8b647c7b00fbf7.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11324199" track-click="{"objectType":"user","objectId":11324199}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/avatar/24199.png?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11324199" track-click="{"objectType":"user","objectId":11324199}" target="_blank" class="author-info name">_孙同学</a><span class="author-info time"><time dateTime="2024-11-26 12:18:11" title="2024-11-26 12:18:11"> <span>4</span>天前<span class="com-v-box">2024-11-26 12:18:11</span></time></span></div></div></div><p class="com-article-panel-v2-des"> 在Linux中,任何一个目录下都一定含有两个隐藏文件.和..。其中..表示当前路径的上级路径,.表示当前路径。 补充: 在Linux中写指令时,选项何以...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>169</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471204.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471183" track-click="{"areaId":113001,"objectType":"article","objectId":2471183}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471183}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">【C++之STL】摸清 string 的模拟实现(下)</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/16259?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":16259}" class="com-tag-v2">stl</a><a href="/developer/tag/16276?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":16276}" class="com-tag-v2">string</a><a href="/developer/tag/17248?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17248}" class="com-tag-v2">对象</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/10166?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10166}" class="com-tag-v2">c++</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11289853" track-click="{"objectType":"user","objectId":11289853}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/c570e353491da36a4f90dd0d523b8c0a.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11289853" track-click="{"objectType":"user","objectId":11289853}" target="_blank" class="author-info name">fhvyxyci</a><span class="author-info time"><time dateTime="2024-11-26 11:26:30" title="2024-11-26 11:26:30"> <span>5</span>天前<span class="com-v-box">2024-11-26 11:26:30</span></time></span></div></div></div><p class="com-article-panel-v2-des">但是要注意的是,如果在使用该函数并将其返回值存储起来后,如果后续对string操作时导致string的字符串的地址发生了改变,那么之前存储起来的指针就已经失效了...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>70</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471183.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471148" track-click="{"areaId":113001,"objectType":"article","objectId":2471148}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471148}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">uniapp-base64编码解码</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/12293?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":12293}" class="com-tag-v2">base64</a><a href="/developer/tag/16552?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":16552}" class="com-tag-v2">tostring</a><a href="/developer/tag/17189?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17189}" class="com-tag-v2">编码</a><a href="/developer/tag/17317?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17317}" class="com-tag-v2">加密</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/7870797" track-click="{"objectType":"user","objectId":7870797}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/19d89cb1bfd0ac21dec1b86e343b5a89.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/7870797" track-click="{"objectType":"user","objectId":7870797}" target="_blank" class="author-info name">超级小可爱</a><span class="author-info time"><time dateTime="2024-11-26 10:56:55" title="2024-11-26 10:56:55"> <span>5</span>天前<span class="com-v-box">2024-11-26 10:56:55</span></time></span></div></div></div><p class="com-article-panel-v2-des"></p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>59</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471148.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471132" track-click="{"areaId":113001,"objectType":"article","objectId":2471132}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471132}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">【双指针进阶】深入理解双指针作用——滑动窗口题型带你一网打尽!</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17457?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17457}" class="com-tag-v2">数组</a><a href="/developer/tag/17462?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17462}" class="com-tag-v2">索引</a><a href="/developer/tag/17590?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17590}" class="com-tag-v2">指针</a><a href="/developer/tag/17603?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17603}" class="com-tag-v2">字符串</a><a href="/developer/tag/10665?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10665}" class="com-tag-v2">存储</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-11286421/2b2b1ff1b1e373f550ad9e4043cb10c7.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11286421" track-click="{"objectType":"user","objectId":11286421}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/avatar/36421.png?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11286421" track-click="{"objectType":"user","objectId":11286421}" target="_blank" class="author-info name">用户11286421</a><span class="author-info time"><time dateTime="2024-11-26 10:46:29" title="2024-11-26 10:46:29"> <span>5</span>天前<span class="com-v-box">2024-11-26 10:46:29</span></time></span></div></div></div><p class="com-article-panel-v2-des"></p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>66</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471132.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section></div><div><div class="c-loading c-loading-tip"><div class="c-loading-inner"><div class="one"></div><div class="two"></div><div class="three"></div></div></div></div></com></div></div></div><div class="layout-side" track-click="" track-exposure=""><div class="com-2-section side"><header class="com-2-section-hd"><h2 class="com-2-section-title without-icon"><span><em>相关</em>产品</span></h2></header><div class="com-2-section-bd"><ul class="com-side-products"><li class="panel-cell"><div class="com-side-product"><a href="" target="_blank" class="panel-link"></a><header class="com-side-product-hd"><div class="com-side-product-object"><img src="//cloudcache.tencent-cloud.com/qcloud/developer/images/release/team/product-default-icon.v1.svg" alt=""/></div><h3 class="com-side-product-title"></h3></header><p class="com-side-product-desc"></p></div></li></ul></div></div><div class="com-2-section side"><header class="com-2-section-hd"><h2 class="com-2-section-title without-icon"><span><em>热门</em>专栏</span></h2></header><div class="com-2-section-bd"><div class="com-side-column-panels-wrap"><div class="com-side-column-panels-cnt"><ul track-click="{"areaId":113004}" track-exposure="{"areaId":113004}" class="com-side-column-panels"><li class="panel-cell"><a href="/developer/column/1143" trackClick="{"objectType":"column","objectId":1143}" class="com-media com-side-column-panel"><div class="com-media-object"><span class="com-2-avatar"><span class="com-2-avatar-inner" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/469835a0a6bc57f5c163a80c7cf653a1.jpg?imageView2/2/w/76/h/7000)"></span></span></div><div class="com-media-body"><h3 class="com-side-column-panel-title">杨焱的专栏</h3><div class="com-side-column-panel-infos"><div class="com-datas"><span class="com-data">238 文章</span><span class="com-data">28 订阅</span></div></div></div></a></li><li class="panel-cell"><a href="/developer/column/1165" trackClick="{"objectType":"column","objectId":1165}" class="com-media com-side-column-panel"><div class="com-media-object"><span class="com-2-avatar"><span class="com-2-avatar-inner" style="background-image:url(https://ask.qcloudimg.com/avatar/female/rkclsi9ZHum.png)"></span></span></div><div class="com-media-body"><h3 class="com-side-column-panel-title">饶文津的专栏</h3><div class="com-side-column-panel-infos"><div class="com-datas"><span class="com-data">478 文章</span><span class="com-data">35 订阅</span></div></div></div></a></li><li class="panel-cell"><a href="/developer/column/1223" trackClick="{"objectType":"column","objectId":1223}" class="com-media com-side-column-panel"><div class="com-media-object"><span class="com-2-avatar"><span class="com-2-avatar-inner" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-410847/fb31b97a3af694f513d249eba5a3ecd3.png?imageView2/2/w/76/h/7000)"></span></span></div><div class="com-media-body"><h3 class="com-side-column-panel-title">张善友的专栏</h3><div class="com-side-column-panel-infos"><div class="com-datas"><span class="com-data">1.5K 文章</span><span class="com-data">138 订阅</span></div></div></div></a></li><li class="panel-cell"><a href="/developer/column/1283" trackClick="{"objectType":"column","objectId":1283}" class="com-media com-side-column-panel"><div class="com-media-object"><span class="com-2-avatar"><span class="com-2-avatar-inner" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-170434/568f3e8410f6654284c65b8e886345e3.png?imageView2/2/w/76/h/7000)"></span></span></div><div class="com-media-body"><h3 class="com-side-column-panel-title">腾讯技术工程官方号的专栏</h3><div class="com-side-column-panel-infos"><div class="com-datas"><span class="com-data">1.1K 文章</span><span class="com-data">911 订阅</span></div></div></div></a></li></ul></div></div></div></div></div></div></div><div class="cdc-footer J-footer com-2-footer"><div class="cdc-footer__inner"><div class="cdc-footer__main"><div class="cdc-footer__website"><ul class="cdc-footer__website-group"><li class="cdc-footer__website-column"><div class="cdc-footer__website-box"><h3 class="cdc-footer__website-title">社区</h3><ul class="cdc-footer__website-list"><li class="cdc-footer__website-item"><a href="/developer/column">专栏文章</a></li><li class="cdc-footer__website-item"><a href="/developer/inventory">阅读清单</a></li><li class="cdc-footer__website-item"><a href="/developer/ask">互动问答</a></li><li class="cdc-footer__website-item"><a href="/developer/salon">技术沙龙</a></li><li class="cdc-footer__website-item"><a href="/developer/video">技术视频</a></li><li class="cdc-footer__website-item"><a href="/developer/teams">团队主页</a></li><li class="cdc-footer__website-item"><a href="/developer/timl">腾讯云TI平台</a></li></ul></div></li><li class="cdc-footer__website-column"><div class="cdc-footer__website-box"><h3 class="cdc-footer__website-title">活动</h3><ul class="cdc-footer__website-list"><li class="cdc-footer__website-item"><a href="/developer/support-plan">自媒体同步曝光计划</a></li><li class="cdc-footer__website-item"><a href="/developer/support-plan-invitation">邀请作者入驻</a></li><li class="cdc-footer__website-item"><a href="/developer/article/1535830">自荐上首页</a></li><li class="cdc-footer__website-item"><a href="/developer/competition">技术竞赛</a></li></ul></div></li><li class="cdc-footer__website-column"><div class="cdc-footer__website-box"><h3 class="cdc-footer__website-title">资源</h3><ul class="cdc-footer__website-list"><li class="cdc-footer__website-item"><a href="/developer/specials">技术周刊</a></li><li class="cdc-footer__website-item"><a href="/developer/tags">社区标签</a></li><li class="cdc-footer__website-item"><a href="/developer/devdocs">开发者手册</a></li><li class="cdc-footer__website-item"><a href="/lab?from=20064&from_column=20064">开发者实验室</a></li></ul></div></li><li class="cdc-footer__website-column"><div class="cdc-footer__website-box"><h3 class="cdc-footer__website-title">关于</h3><ul class="cdc-footer__website-list"><li class="cdc-footer__website-item"><a rel="nofollow" href="/developer/article/1006434">社区规范</a></li><li class="cdc-footer__website-item"><a rel="nofollow" href="/developer/article/1006435">免责声明</a></li><li class="cdc-footer__website-item"><a rel="nofollow" href="mailto:cloudcommunity@tencent.com">联系我们</a></li><li class="cdc-footer__website-item"><a rel="nofollow" href="/developer/friendlink">友情链接</a></li></ul></div></li></ul></div><div class="cdc-footer__qr"><h3 class="cdc-footer__qr-title">腾讯云开发者</h3><div class="cdc-footer__qr-object"><img class="cdc-footer__qr-image" src="https://qcloudimg.tencent-cloud.cn/raw/a8907230cd5be483497c7e90b061b861.png" alt="扫码关注腾讯云开发者"/></div><div class="cdc-footer__qr-infos"><p class="cdc-footer__qr-info"><span class="cdc-footer__qr-text">扫码关注腾讯云开发者</span></p><p class="cdc-footer__qr-info"><span class="cdc-footer__qr-text">领取腾讯云代金券</span></p></div></div></div><div class="cdc-footer__recommend"><div class="cdc-footer__recommend-rows"><div class="cdc-footer__recommend-cell"><h3 class="cdc-footer__recommend-title">热门产品</h3><div class="cdc-footer__recommend-wrap"><ul class="cdc-footer__recommend-list"><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="https://dnspod.cloud.tencent.com?from=20064&from_column=20064">域名注册</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cvm?from=20064&from_column=20064">云服务器</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/tbaas?from=20064&from_column=20064">区块链服务</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/mq?from=20064&from_column=20064">消息队列</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/dsa?from=20064&from_column=20064">网络加速</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/tencentdb-catalog?from=20064&from_column=20064">云数据库</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cns?from=20064&from_column=20064">域名解析</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cos?from=20064&from_column=20064">云存储</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/css?from=20064&from_column=20064">视频直播</a></li></ul></div></div><div class="cdc-footer__recommend-cell"><h3 class="cdc-footer__recommend-title">热门推荐</h3><div class="cdc-footer__recommend-wrap"><ul class="cdc-footer__recommend-list"><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/facerecognition?from=20064&from_column=20064">人脸识别</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/tm?from=20064&from_column=20064">腾讯会议</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/act/pro/enterprise2019?from=20064&from_column=20064">企业云</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cdn-scd?from=20064&from_column=20064">CDN加速</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/trtc?from=20064&from_column=20064">视频通话</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/tiia?from=20064&from_column=20064">图像分析</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cdb?from=20064&from_column=20064">MySQL 数据库</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/symantecssl?from=20064&from_column=20064">SSL 证书</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/asr?from=20064&from_column=20064">语音识别</a></li></ul></div></div><div class="cdc-footer__recommend-cell"><h3 class="cdc-footer__recommend-title">更多推荐</h3><div class="cdc-footer__recommend-wrap"><ul class="cdc-footer__recommend-list"><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/solution/data_protection?from=20064&from_column=20064">数据安全</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/clb?from=20064&from_column=20064">负载均衡</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/sms?from=20064&from_column=20064">短信</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/ocr?from=20064&from_column=20064">文字识别</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/vod?from=20064&from_column=20064">云点播</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="https://tm.cloud.tencent.com?from=20064&from_column=20064">商标注册</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/solution/la?from=20064&from_column=20064">小程序开发</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cat?from=20064&from_column=20064">网站监控</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cdm?from=20064&from_column=20064">数据迁移</a></li></ul></div></div></div></div><div class="cdc-footer__copyright"><div class="cdc-footer__copyright-text"><p>Copyright © 2013 - <!-- -->2024<!-- --> Tencent Cloud. All Rights Reserved. 腾讯云 版权所有<!-- --> </p><p>深圳市腾讯计算机系统有限公司 ICP备案/许可证号:<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">粤B2-20090059<!-- --> </a><a href="https://www.beian.gov.cn/portal/index.do" target="_blank">深公网安备号 44030502008569</a></p><p>腾讯云计算(北京)有限责任公司 京ICP证150476号 | <!-- --> <a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">京ICP备11018762号</a> | <!-- --> <a href="https://www.beian.gov.cn/portal/index.do" target="_blank">京公网安备号11010802020287</a></p></div></div></div></div></div><div class="com-widget-global"><div style="position:relative;z-index:8088"><div class="com-widget-global2"><div class="com-widget-global2__btn code"><div class="com-widget-global2__btn-tag">领券</div></div><div class="com-widget-global2__btn top" style="visibility:hidden"></div></div></div></div><div id="dialog-root"></div><div id="rno-dialog-root" class="rno-modal-wrap"></div></div><script>window.isServerContext = false; window.isClientContext = true;</script><script>window.$serverTime = 1733025791040; window.$clientTime = 1733025791040;</script><script class="">window.$ua = {"browser":{"name":"IE","version":"7.0","major":"7"},"cpu":{},"device":{},"engine":{},"os":{"name":"Windows","version":"Vista"}};</script><script src="//cloudcache.tencent-cloud.com/qcloud/developer/scripts/release/libs/dom4/1.8.3/dom4.js"></script><script src="https://cloudcache.tencent-cloud.com/qcloud/main/scripts/release/common/vendors/babel/polyfill.6.26.min.js"></script><script src="https://cloudcache.tencent-cloud.com/qcloud/main/scripts/release/common/vendors/react/react.16.8.6.min.js"></script><script src="https://cloudcache.tencent-cloud.com/qcloud/main/scripts/release/common/vendors/react/react-dom.16.8.6.min.js"></script><script src="https://cloudcache.tencent-cloud.com/qcloud/main/scripts/release/common/vendors/jquery-3.2.1.min.js"></script><script src="//cloudcache.tencent-cloud.com/qcloud/developer/scripts/release/base.e1782d07ea.js?max_age=31536000" crossorigin="anonymous"></script><script src="//cloudcache.tencent-cloud.com/qcloud/draft-master/dist/draft-master-v2.0.142.d4s2ddo9sb.js?max_age=31536000"></script><script src="https://cloud.tencent.com/qccomponent/login/api.js"></script><script src="//cloudcache.tencent-cloud.com/qcloud/main/scripts/release/common/deps/wechatJsSdk.js?version=1_0_1&max_age=31536000"></script><script src="//cloudcache.tencent-cloud.com/qcloud/developer/scripts/release/common.bfa68a623a.js?max_age=31536000" crossorigin="anonymous"></script><script src="https://web.sdk.qcloud.com/player/tcplayer/release/v4.7.2/tcplayer.v4.7.2.min.js"></script><script src="//dscache.tencent-cloud.cn/ecache/qcstat/qcloud/qcloudStatApi.js"></script><script src="https://qccommunity.qcloudimg.com/common/exposure-plugin-4.1.15.min.js"></script><script src="https://qccommunity.qcloudimg.com/community-track/qcloud-community-track.min.js"></script><script src="https://dscache.tencent-cloud.com/sdk/dianshi-sdk/loader/umd/dianshi-sdk-loader.v0.0.18.js"></script><script src="//cloudcache.tencent-cloud.com/qcloud/developer/scripts/release/tag/tag-detail.58e2085521.js?max_age=31536000" crossorigin="anonymous"></script><script class=""> window.$render({"tagInfo":{"id":17603,"name":"字符串","icon":"","defaultIcon":"//cloudcache.tencent-cloud.com/open_proj/proj_qcloud_v2/gateway/q-and-a/css/img/tags/tag_comm.svg","shareIcon":"https://cloudcache.tencent-cloud.com/open_proj/proj_qcloud_v2/gateway/q-and-a/css/img/tags/share_comm.png","initial":"Z","desc":"","followCount":0,"questionCount":238,"answerCount":292,"unanswerCount":45,"articleCount":6522,"devdocCount":0,"vlogCount":0,"boundProductId":0,"stick":{"articleIds":[],"askIds":[],"vlogIds":[]},"createTime":"2023-03-14 11:35:00"},"activeRelatedEntry":"article","timelineData":{"ask":{"fetchStatus":"none","done":false,"nextPageNumber":1,"pageSize":20,"total":0,"list":[]},"article":{"fetchStatus":"loaded","done":false,"nextPageNumber":2,"pageSize":20,"total":6504,"list":[{"id":2472408,"articleId":2472408,"title":"【项目日记】仿mudou的高并发服务器 --- 实现HTTP服务器","content":"","plain":"","brief":"","summary":"在HTTP服务器处理中,经常需要一些常用操作,比如切分字符串,编码转换,通过状态码找到对应状态解析… Util工具类就是用来实现这些功能的类!","abstract":"在HTTP服务器处理中,经常需要一些常用操作,比如切分字符串,编码转换,通过状态码找到对应状态解析… Util工具类就是用来实现这些功能的类!","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-10927293/aa76140fac5034e6b2837b5bb493f702.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-10927293/aa76140fac5034e6b2837b5bb493f702.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":10927293,"columnId":102044,"columnIds":[],"writeTime":1732941741,"updateTime":1732941741,"viewCount":19,"likeCount":0,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/avatar/27293.png","company":"","introduce":"","isProfessionVerified":0,"nickname":"叫我龙翔","title":"","uid":10927293,"id":10927293,"name":"叫我龙翔","avatar":"https://developer.qcloudimg.com/avatar/27293.png"},"tags":[{"tagId":17270,"tagName":"高并发","id":17270,"name":"高并发"},{"tagId":17440,"tagName":"数据","id":17440,"name":"数据"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":10620,"tagName":"http","id":10620,"name":"http"},{"tagId":17267,"tagName":"服务器","id":17267,"name":"服务器"}]},{"id":2472305,"articleId":2472305,"title":"某依框架定时任务RCE分析与思考","content":"","plain":"","brief":"","summary":"该框架在v4.6.2及以下,对调用目标字符串限制不是很严格,可以直接随意编辑。v4.6.2~4.7.1新增黑名单限制调用字符串","abstract":"该框架在v4.6.2及以下,对调用目标字符串限制不是很严格,可以直接随意编辑。v4.6.2~4.7.1新增黑名单限制调用字符串","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-7991314/1b0b49bd78ef401184d4cc4b25098d8c.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-7991314/1b0b49bd78ef401184d4cc4b25098d8c.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":7991314,"columnId":90205,"columnIds":[],"writeTime":1732872859,"updateTime":1732872859,"viewCount":38,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://ask.qcloudimg.com/http-save/yehe-7991314/87c0d14c0db279118a4ad4feed38e2b2.jpeg","company":"BIGO","introduce":"研发中比较懂业务,业务中最会写代码!公众号 PersistentCoder","isProfessionVerified":1,"nickname":"叔牙","title":"工程师","uid":7991314,"id":7991314,"name":"叔牙","avatar":"https://ask.qcloudimg.com/http-save/yehe-7991314/87c0d14c0db279118a4ad4feed38e2b2.jpeg"},"tags":[{"tagId":17353,"tagName":"框架","id":17353,"name":"框架"},{"tagId":17369,"tagName":"漏洞","id":17369,"name":"漏洞"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":17241,"tagName":"定时任务","id":17241,"name":"定时任务"},{"tagId":17264,"tagName":"服务","id":17264,"name":"服务"}]},{"id":2472303,"articleId":2472303,"title":".NET 中50种常见错误使用方法及推荐用法","content":"","plain":"","brief":"","summary":"使用字符串插值 () 实现更清晰、可读性的字符串格式,从而降低复杂字符串出错的风险。$\"...\"","abstract":"使用字符串插值 () 实现更清晰、可读性的字符串格式,从而降低复杂字符串出错的风险。$\"...\"","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-7499234/0a29e07d09a70e13fee7eff84639a404.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-7499234/0a29e07d09a70e13fee7eff84639a404.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":7499234,"columnId":89717,"columnIds":[],"writeTime":1732872684,"updateTime":1732872684,"viewCount":51,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://ask.qcloudimg.com/http-save/yehe-7499234/c96c64adf4850c3af5eb82a172828dcb.jpeg","company":"","introduce":"微软 MVP,公众号:DotNet NB,CloudNative NB","isProfessionVerified":0,"nickname":"郑子铭","title":"后端开发工程师","uid":7499234,"id":7499234,"name":"郑子铭","avatar":"https://ask.qcloudimg.com/http-save/yehe-7499234/c96c64adf4850c3af5eb82a172828dcb.jpeg"},"tags":[{"tagId":17540,"tagName":"异常","id":17540,"name":"异常"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":15429,"tagName":"public","id":15429,"name":"public"},{"tagId":17189,"tagName":"编码","id":17189,"name":"编码"},{"tagId":17205,"tagName":"测试","id":17205,"name":"测试"}]},{"id":2472208,"articleId":2472208,"title":"从认识String类,到走进String类的世界","content":"","plain":"","brief":"","summary":"substring(int beginIndex):返回一个新的字符串,它是此字符串从beginIndex开始截取到字符串结尾的一个子字符串。","abstract":"substring(int beginIndex):返回一个新的字符串,它是此字符串从beginIndex开始截取到字符串结尾的一个子字符串。","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-11316136/cd42155cd7462e03a705c26ce9a1cd03.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-11316136/cd42155cd7462e03a705c26ce9a1cd03.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11316136,"columnId":104308,"columnIds":[],"writeTime":1732850832,"updateTime":1732850832,"viewCount":17,"likeCount":0,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/avatar/16136.png","company":"","introduce":"","isProfessionVerified":0,"nickname":"用户11316136","title":"","uid":11316136,"id":11316136,"name":"用户11316136","avatar":"https://developer.qcloudimg.com/avatar/16136.png"},"tags":[{"tagId":17509,"tagName":"线程安全","id":17509,"name":"线程安全"},{"tagId":17525,"tagName":"性能","id":17525,"name":"性能"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":16276,"tagName":"string","id":16276,"name":"string"},{"tagId":17248,"tagName":"对象","id":17248,"name":"对象"}]},{"id":2472124,"articleId":2472124,"title":"日期字符格式yyyyMMddHHmmss转换字符串或LocalDateTime对象","content":"","plain":"","brief":"","summary":"日期字符格式yyyyMMddHHmmss转换字符串或LocalDateTime对象","abstract":"日期字符格式yyyyMMddHHmmss转换字符串或LocalDateTime对象","posterSummary":"","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":9679348,"columnId":103873,"columnIds":[],"writeTime":1732838084,"updateTime":1732838084,"viewCount":84,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/5c27bee623807f821661100a4241c944.jpg","company":"","introduce":"","isProfessionVerified":0,"nickname":"oktokeep","title":"","uid":9679348,"id":9679348,"name":"oktokeep","avatar":"https://developer.qcloudimg.com/http-save/10011/5c27bee623807f821661100a4241c944.jpg"},"tags":[{"tagId":12941,"tagName":"date","id":12941,"name":"date"},{"tagId":16237,"tagName":"static","id":16237,"name":"static"},{"tagId":16276,"tagName":"string","id":16276,"name":"string"},{"tagId":17248,"tagName":"对象","id":17248,"name":"对象"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"}]},{"id":2472096,"articleId":2472096,"title":"2024-11-27:字符串的分数。用go语言,给定一个字符串 s,我们可以定义其“分数”为相邻字符的 ASCII 码差值绝对值","content":"","plain":"","brief":"","summary":"2024-11-27:字符串的分数。用go语言,给定一个字符串 s,我们可以定义其“分数”为相邻字符的 ASCII 码差值绝对值的总和。","abstract":"2024-11-27:字符串的分数。用go语言,给定一个字符串 s,我们可以定义其“分数”为相邻字符的 ASCII 码差值绝对值的总和。","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-7620466/f30a08dc2d1bbf9c76d064a74dd90a13.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-7620466/f30a08dc2d1bbf9c76d064a74dd90a13.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":7620466,"columnId":88547,"columnIds":[],"writeTime":1732799966,"updateTime":1732799966,"viewCount":46,"likeCount":2,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/4b93323c1bab6e531362f6c37b49d6b5.jpg","company":"北京动视元科技有限公司","introduce":"公众号:福大大架构师每日一题","isProfessionVerified":1,"nickname":"福大大架构师每日一题","title":"研发工程师","uid":7620466,"id":7620466,"name":"福大大架构师每日一题","avatar":"https://developer.qcloudimg.com/http-save/10011/4b93323c1bab6e531362f6c37b49d6b5.jpg"},"tags":[{"tagId":17187,"tagName":"遍历","id":17187,"name":"遍历"},{"tagId":17462,"tagName":"索引","id":17462,"name":"索引"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":10665,"tagName":"存储","id":10665,"name":"存储"},{"tagId":10941,"tagName":"ascii","id":10941,"name":"ascii"}]},{"id":2471896,"articleId":2471896,"title":"Discourse 使用 DiscourseConnect 调用接口 admin/users/sync_sso 422 错误","content":"","plain":"","brief":"","summary":"最近在调试 Java 代码的时候调用上面的 SSO 同步接口,Discourse 返回的错误信息为:","abstract":"最近在调试 Java 代码的时候调用上面的 SSO 同步接口,Discourse 返回的错误信息为:","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-4532411/d5da0040e5956a84c1d501ee40063bc0.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-4532411/d5da0040e5956a84c1d501ee40063bc0.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":4532411,"columnId":74356,"columnIds":[],"writeTime":1732756581,"updateTime":1732756581,"viewCount":58,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/281e6581cc79f5ab183996a365785b1d.jpg","company":"","introduce":"","isProfessionVerified":0,"nickname":"HoneyMoose","title":"","uid":4532411,"id":4532411,"name":"HoneyMoose","avatar":"https://developer.qcloudimg.com/http-save/10011/281e6581cc79f5ab183996a365785b1d.jpg"},"tags":[{"tagId":16221,"tagName":"sso","id":16221,"name":"sso"},{"tagId":17329,"tagName":"接口","id":17329,"name":"接口"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":11720,"tagName":"admin","id":11720,"name":"admin"},{"tagId":12431,"tagName":"builder","id":12431,"name":"builder"}]},{"id":2471822,"articleId":2471822,"title":"字符串匹配算法","content":"","plain":"","brief":"","summary":"字符串的匹配的场景一般是这样的,简单说就是一个大的字符串中有没有一个字符串匹配,我们把大的字符串叫做主串,而匹配最后小的字符串叫做模式串.","abstract":"字符串的匹配的场景一般是这样的,简单说就是一个大的字符串中有没有一个字符串匹配,我们把大的字符串叫做主串,而匹配最后小的字符串叫做模式串.","posterSummary":"","description":"","picture":"","coverImageUrl":"","sourceType":1,"sourceDetail":{},"channelType":0,"channelDetail":{},"authorId":10082133,"columnId":104209,"columnIds":[],"writeTime":1732713169,"updateTime":1732713169,"viewCount":68,"likeCount":0,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/9268c4085847b62cc6363e6c8634bdb1.png","company":"","introduce":"","isProfessionVerified":0,"nickname":"ge3m0r","title":"","uid":10082133,"id":10082133,"name":"ge3m0r","avatar":"https://developer.qcloudimg.com/http-save/10011/9268c4085847b62cc6363e6c8634bdb1.png"},"tags":[{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"}]},{"id":2471718,"articleId":2471718,"title":"惊爆!48 个超实用 JavaScript 代码片段,收藏必备!","content":"","plain":"","brief":"","summary":"日常工作上,大家经常都会保存一些自己常用的代码片段,比如数字每3位添加逗号、日期格式化、解析location.query或location.hash为JSON对...","abstract":"日常工作上,大家经常都会保存一些自己常用的代码片段,比如数字每3位添加逗号、日期格式化、解析location.query或location.hash为JSON对...","posterSummary":"日常工作上,大家经常都会保存一些自己常用的代码片段,比如数字每3位添加逗号、日期格式化、解析location.query或location.hash为JSON对象等等。今天带来一篇外网非常火的文章,收集了JavaScript中48个常用的代码片段,同学们可以学习下,部分片段在面试中也经常遇到。","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-6490225/e213e238dfdfe045155deaf6560124ab.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-6490225/e213e238dfdfe045155deaf6560124ab.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":6490225,"columnId":82746,"columnIds":[],"writeTime":1732691206,"updateTime":1732691206,"viewCount":89,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://ask.qcloudimg.com/http-save/yehe-6490225/pnuezk42la.jpeg","company":"","introduce":"公众号:「测试开发技术」作者,畅销书《自动化测试实战宝典:从小工到专家》作者","isProfessionVerified":0,"nickname":"测试开发技术","title":"研发质量总监","uid":6490225,"id":6490225,"name":"测试开发技术","avatar":"https://ask.qcloudimg.com/http-save/yehe-6490225/pnuezk42la.jpeg"},"tags":[{"tagId":17290,"tagName":"函数","id":17290,"name":"函数"},{"tagId":17457,"tagName":"数组","id":17457,"name":"数组"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":10170,"tagName":"javascript","id":10170,"name":"javascript"},{"tagId":17234,"tagName":"递归","id":17234,"name":"递归"}]},{"id":2471474,"articleId":2471474,"title":"EXCEL截取某一列从第一个字符开始到特定字符结束的字符串到新的一列","content":"","plain":"","brief":"","summary":"我们需要在B1单元格输入公式“=LEFT(A1,SEARCH(\"-\",A1)-1)”然后选中B1至B4单元格,按“CTRL+D”向下填充,就可以得出其它几行“-...","abstract":"我们需要在B1单元格输入公式“=LEFT(A1,SEARCH(\"-\",A1)-1)”然后选中B1至B4单元格,按“CTRL+D”向下填充,就可以得出其它几行“-...","posterSummary":"我们需要在B1单元格输入公式“=LEFT(A1,SEARCH(\"-\",A1)-1)”然后选中B1至B4单元格,按“CTRL+D”向下填充,就可以得出其它几行“-”之前的字段。","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-10562612/270736dac6264f2029918b73594d18c5.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-10562612/270736dac6264f2029918b73594d18c5.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":10562612,"columnId":99562,"columnIds":[],"writeTime":1732668553,"updateTime":1732668553,"viewCount":119,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/d56370c758138980bea1db221e7f99ec.jpg","company":"","introduce":"点击头像领取大礼包主页有视频","isProfessionVerified":0,"nickname":"翎野君","title":"","uid":10562612,"id":10562612,"name":"翎野君","avatar":"https://developer.qcloudimg.com/http-save/10011/d56370c758138980bea1db221e7f99ec.jpg"},"tags":[{"tagId":17440,"tagName":"数据","id":17440,"name":"数据"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":13299,"tagName":"excel","id":13299,"name":"excel"},{"tagId":17189,"tagName":"编码","id":17189,"name":"编码"},{"tagId":17210,"tagName":"产品","id":17210,"name":"产品"}]},{"id":2471466,"articleId":2471466,"title":"Mysql的聚合函数的详细使用方法","content":"","plain":"","brief":"","summary":"","abstract":"","posterSummary":"","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":9679348,"columnId":103873,"columnIds":[],"writeTime":1732668428,"updateTime":1732668428,"viewCount":106,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/5c27bee623807f821661100a4241c944.jpg","company":"","introduce":"","isProfessionVerified":0,"nickname":"oktokeep","title":"","uid":9679348,"id":9679348,"name":"oktokeep","avatar":"https://developer.qcloudimg.com/http-save/10011/5c27bee623807f821661100a4241c944.jpg"},"tags":[{"tagId":17290,"tagName":"函数","id":17290,"name":"函数"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":14827,"tagName":"mysql","id":14827,"name":"mysql"},{"tagId":15383,"tagName":"product","id":15383,"name":"product"},{"tagId":15899,"tagName":"select","id":15899,"name":"select"}]},{"id":2471459,"articleId":2471459,"title":"备战第16届蓝桥杯——常用字符串函数","content":"","plain":"","brief":"","summary":"String str1= “abc”; 在编译期,JVM会去常量池来查找是否存在“abc”,如果不存在,就在常量池中开辟一个空间来存储“abc”;如果存在,就不...","abstract":"String str1= “abc”; 在编译期,JVM会去常量池来查找是否存在“abc”,如果不存在,就在常量池中开辟一个空间来存储“abc”;如果存在,就不...","posterSummary":"String str1= “abc”; 在编译期,JVM会去常量池来查找是否存在“abc”,如果不存在,就在常量池中开辟一个空间来存储“abc”;如果存在,就不用新开辟空间。然后在栈内存中开辟一个名字为str1的空间,来存储“abc”在常量池中的地址值。","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-2671013/ad284e1b7d4b88d8f1483d3395029650.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-2671013/ad284e1b7d4b88d8f1483d3395029650.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":2671013,"columnId":97620,"columnIds":[],"writeTime":1732667944,"updateTime":1732667944,"viewCount":70,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/dc5912768ea294bec0c8b893df1caba9.jpg","company":"河北工业职业技术大学","introduce":"现从事于教育行业,获得过国家级教师能力比赛三等奖,国家级算法比赛一等奖。","isProfessionVerified":0,"nickname":"红目香薰","title":"讲师","uid":2671013,"id":2671013,"name":"红目香薰","avatar":"https://developer.qcloudimg.com/http-save/10011/dc5912768ea294bec0c8b893df1caba9.jpg"},"tags":[{"tagId":16276,"tagName":"string","id":16276,"name":"string"},{"tagId":17248,"tagName":"对象","id":17248,"name":"对象"},{"tagId":17290,"tagName":"函数","id":17290,"name":"函数"},{"tagId":17382,"tagName":"内存","id":17382,"name":"内存"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"}]},{"id":2471297,"articleId":2471297,"title":"2024-11-25:满足距离约束且字典序最小的字符串。用go语言,给定一个字符串 s 和一个整数 k,我们需要定义一个函数 d","content":"","plain":"","brief":"","summary":"2024-11-25:满足距离约束且字典序最小的字符串。用go语言,给定一个字符串 s 和一个整数 k,我们需要定义一个函数 distance(s1, s2) ...","abstract":"2024-11-25:满足距离约束且字典序最小的字符串。用go语言,给定一个字符串 s 和一个整数 k,我们需要定义一个函数 distance(s1, s2) ...","posterSummary":"2024-11-25:满足距离约束且字典序最小的字符串。用go语言,给定一个字符串 s 和一个整数 k,我们需要定义一个函数 distance(s1, s2) 来计算两个长度相同的字符串 s1 和 s2 之间的距离。这个距离的定义是:对于每个索引 i(范围从 0 到 n-1),找出字符 s1[i] 和 s2[i] 之间的最小循环距离,并将这些最小距离相加。","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-7620466/338bdc48cd8f4d3acb94075c287500c0.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-7620466/338bdc48cd8f4d3acb94075c287500c0.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":7620466,"columnId":88547,"columnIds":[],"writeTime":1732607143,"updateTime":1732607143,"viewCount":50,"likeCount":2,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/4b93323c1bab6e531362f6c37b49d6b5.jpg","company":"北京动视元科技有限公司","introduce":"公众号:福大大架构师每日一题","isProfessionVerified":1,"nickname":"福大大架构师每日一题","title":"研发工程师","uid":7620466,"id":7620466,"name":"福大大架构师每日一题","avatar":"https://developer.qcloudimg.com/http-save/10011/4b93323c1bab6e531362f6c37b49d6b5.jpg"},"tags":[{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":17187,"tagName":"遍历","id":17187,"name":"遍历"},{"tagId":17188,"tagName":"变量","id":17188,"name":"变量"},{"tagId":17290,"tagName":"函数","id":17290,"name":"函数"},{"tagId":17457,"tagName":"数组","id":17457,"name":"数组"}]},{"id":2471270,"articleId":2471270,"title":"【C语言】深入解析自定义my_strlen函数的设计与实现细节","content":"","plain":"","brief":"","summary":"在 C 语言中,字符串是以空字符 \\0 作为结束符的。空字符用于标识字符串的终止,使得字符串处理函数(例如 strlen、strcpy 等)能够知道何时停止处理...","abstract":"在 C 语言中,字符串是以空字符 \\0 作为结束符的。空字符用于标识字符串的终止,使得字符串处理函数(例如 strlen、strcpy 等)能够知道何时停止处理...","posterSummary":"在 C 语言中,字符串是以空字符 \\0 作为结束符的。空字符用于标识字符串的终止,使得字符串处理函数(例如 strlen、strcpy 等)能够知道何时停止处理。空字符在 ASCII 中的数值为 0,是一种控制字符,区别于字符 '0'。","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-11281638/165798b307ae1225329b0b55859ee701.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-11281638/165798b307ae1225329b0b55859ee701.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11281638,"columnId":103971,"columnIds":[],"writeTime":1732603333,"updateTime":1732603333,"viewCount":80,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/03e5defe27a7e18b3f7ca2bcfea8a593.jpg","company":"","introduce":"CSDN小ᶻZ࿆,欢迎访问我的主页https://blog.csdn.net/2201_75539691?spm=1011.2415.3001.5343","isProfessionVerified":0,"nickname":"CSDN-Z","title":"","uid":11281638,"id":11281638,"name":"CSDN-Z","avatar":"https://developer.qcloudimg.com/http-save/10011/03e5defe27a7e18b3f7ca2bcfea8a593.jpg"},"tags":[{"tagId":17290,"tagName":"函数","id":17290,"name":"函数"},{"tagId":17382,"tagName":"内存","id":17382,"name":"内存"},{"tagId":17423,"tagName":"设计","id":17423,"name":"设计"},{"tagId":17590,"tagName":"指针","id":17590,"name":"指针"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"}]},{"id":2471269,"articleId":2471269,"title":"【C语言】字符串字面量的特殊性","content":"","plain":"","brief":"","summary":"字符数组的另一个优点是可以动态调整。你可以将字符数组用作缓冲区来存储不同的字符串内容,这在编写需要灵活字符串处理的程序时非常方便。例如在实现字符串拼接、格式化等...","abstract":"字符数组的另一个优点是可以动态调整。你可以将字符数组用作缓冲区来存储不同的字符串内容,这在编写需要灵活字符串处理的程序时非常方便。例如在实现字符串拼接、格式化等...","posterSummary":"字符数组的另一个优点是可以动态调整。你可以将字符数组用作缓冲区来存储不同的字符串内容,这在编写需要灵活字符串处理的程序时非常方便。例如在实现字符串拼接、格式化等功能时,字符数组比字符串字面量更为合适。","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-11281638/165798b307ae1225329b0b55859ee701.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-11281638/165798b307ae1225329b0b55859ee701.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11281638,"columnId":103971,"columnIds":[],"writeTime":1732603243,"updateTime":1732603243,"viewCount":132,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/03e5defe27a7e18b3f7ca2bcfea8a593.jpg","company":"","introduce":"CSDN小ᶻZ࿆,欢迎访问我的主页https://blog.csdn.net/2201_75539691?spm=1011.2415.3001.5343","isProfessionVerified":0,"nickname":"CSDN-Z","title":"","uid":11281638,"id":11281638,"name":"CSDN-Z","avatar":"https://developer.qcloudimg.com/http-save/10011/03e5defe27a7e18b3f7ca2bcfea8a593.jpg"},"tags":[{"tagId":17215,"tagName":"程序","id":17215,"name":"程序"},{"tagId":17382,"tagName":"内存","id":17382,"name":"内存"},{"tagId":17457,"tagName":"数组","id":17457,"name":"数组"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":10665,"tagName":"存储","id":10665,"name":"存储"}]},{"id":2471255,"articleId":2471255,"title":"C++ String揭秘:写高效代码的关键","content":"","plain":"","brief":"","summary":"在C++编程中,字符串操作是不可避免的一部分。从简单的字符串拼接到复杂的文本处理,C++的string类为开发者提供了一种更高效、灵活且安全的方式来管理和操作字...","abstract":"在C++编程中,字符串操作是不可避免的一部分。从简单的字符串拼接到复杂的文本处理,C++的string类为开发者提供了一种更高效、灵活且安全的方式来管理和操作字...","posterSummary":"在C++编程中,字符串操作是不可避免的一部分。从简单的字符串拼接到复杂的文本处理,C++的string类为开发者提供了一种更高效、灵活且安全的方式来管理和操作字符串。本文将从基础操作入手,逐步揭开C++ string类的奥秘,帮助你深入理解其内部机制,并学会如何在实际开发中充分发挥其性能和优势。","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11306053,"columnId":103903,"columnIds":[],"writeTime":1732601676,"updateTime":1732601676,"viewCount":103,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/633ce1ce340d5a8ddf0b83feee2d0fb6.jpg","company":"","introduce":"","isProfessionVerified":0,"nickname":"平凡之路.","title":"","uid":11306053,"id":11306053,"name":"平凡之路.","avatar":"https://developer.qcloudimg.com/http-save/10011/633ce1ce340d5a8ddf0b83feee2d0fb6.jpg"},"tags":[{"tagId":16276,"tagName":"string","id":16276,"name":"string"},{"tagId":17248,"tagName":"对象","id":17248,"name":"对象"},{"tagId":17382,"tagName":"内存","id":17382,"name":"内存"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":10166,"tagName":"c++","id":10166,"name":"c++"}]},{"id":2471204,"articleId":2471204,"title":"【Linux篇】Linux的基本指令 - 掌握这些基本指令就够了","content":"","plain":"","brief":"","summary":"\n 在Linux中,任何一个目录下都一定含有两个隐藏文件.和..。其中..表示当前路径的上级路径,.表示当前路径。\n 补充: 在Linux中写指令时,选项何以...","abstract":"\n 在Linux中,任何一个目录下都一定含有两个隐藏文件.和..。其中..表示当前路径的上级路径,.表示当前路径。\n 补充: 在Linux中写指令时,选项何以...","posterSummary":"\n 在Linux中,任何一个目录下都一定含有两个隐藏文件.和..。其中..表示当前路径的上级路径,.表示当前路径。\n 补充: 在Linux中写指令时,选项何以跟多个,例如:\n 1. ls -a -l\n ","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-11324199/456369fefeffcc5d4e8b647c7b00fbf7.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-11324199/456369fefeffcc5d4e8b647c7b00fbf7.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11324199,"columnId":104004,"columnIds":[],"writeTime":1732594691,"updateTime":1732594691,"viewCount":169,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/avatar/24199.png","company":"","introduce":"","isProfessionVerified":0,"nickname":"_孙同学","title":"","uid":11324199,"id":11324199,"name":"_孙同学","avatar":"https://developer.qcloudimg.com/avatar/24199.png"},"tags":[{"tagId":17559,"tagName":"语法","id":17559,"name":"语法"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":10308,"tagName":"linux","id":10308,"name":"linux"},{"tagId":17459,"tagName":"搜索","id":17459,"name":"搜索"},{"tagId":17506,"tagName":"系统","id":17506,"name":"系统"}]},{"id":2471183,"articleId":2471183,"title":"【C++之STL】摸清 string 的模拟实现(下)","content":"","plain":"","brief":"","summary":"但是要注意的是,如果在使用该函数并将其返回值存储起来后,如果后续对string操作时导致string的字符串的地址发生了改变,那么之前存储起来的指针就已经失效了...","abstract":"但是要注意的是,如果在使用该函数并将其返回值存储起来后,如果后续对string操作时导致string的字符串的地址发生了改变,那么之前存储起来的指针就已经失效了...","posterSummary":"但是要注意的是,如果在使用该函数并将其返回值存储起来后,如果后续对string操作时导致string的字符串的地址发生了改变,那么之前存储起来的指针就已经失效了,是个野指针。","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11289853,"columnId":103833,"columnIds":[],"writeTime":1732591590,"updateTime":1732591590,"viewCount":70,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/c570e353491da36a4f90dd0d523b8c0a.jpg","company":"","introduce":"","isProfessionVerified":0,"nickname":"fhvyxyci","title":"","uid":11289853,"id":11289853,"name":"fhvyxyci","avatar":"https://developer.qcloudimg.com/http-save/10011/c570e353491da36a4f90dd0d523b8c0a.jpg"},"tags":[{"tagId":16259,"tagName":"stl","id":16259,"name":"stl"},{"tagId":16276,"tagName":"string","id":16276,"name":"string"},{"tagId":17248,"tagName":"对象","id":17248,"name":"对象"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":10166,"tagName":"c++","id":10166,"name":"c++"}]},{"id":2471148,"articleId":2471148,"title":"uniapp-base64编码解码","content":"","plain":"","brief":"","summary":"","abstract":"","posterSummary":"","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":7870797,"columnId":98413,"columnIds":[],"writeTime":1732589815,"updateTime":1732589815,"viewCount":59,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/19d89cb1bfd0ac21dec1b86e343b5a89.jpg","company":"","introduce":"活泼可爱,博学多才,乐于助人","isProfessionVerified":0,"nickname":"超级小可爱","title":"软件工程师","uid":7870797,"id":7870797,"name":"超级小可爱","avatar":"https://developer.qcloudimg.com/http-save/10011/19d89cb1bfd0ac21dec1b86e343b5a89.jpg"},"tags":[{"tagId":12293,"tagName":"base64","id":12293,"name":"base64"},{"tagId":16552,"tagName":"tostring","id":16552,"name":"tostring"},{"tagId":17189,"tagName":"编码","id":17189,"name":"编码"},{"tagId":17317,"tagName":"加密","id":17317,"name":"加密"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"}]},{"id":2471132,"articleId":2471132,"title":"【双指针进阶】深入理解双指针作用——滑动窗口题型带你一网打尽!","content":"","plain":"","brief":"","summary":"","abstract":"","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-11286421/2b2b1ff1b1e373f550ad9e4043cb10c7.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-11286421/2b2b1ff1b1e373f550ad9e4043cb10c7.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11286421,"columnId":103815,"columnIds":[],"writeTime":1732589189,"updateTime":1732589189,"viewCount":66,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/avatar/36421.png","company":"","introduce":"","isProfessionVerified":0,"nickname":"用户11286421","title":"","uid":11286421,"id":11286421,"name":"用户11286421","avatar":"https://developer.qcloudimg.com/avatar/36421.png"},"tags":[{"tagId":17457,"tagName":"数组","id":17457,"name":"数组"},{"tagId":17462,"tagName":"索引","id":17462,"name":"索引"},{"tagId":17590,"tagName":"指针","id":17590,"name":"指针"},{"tagId":17603,"tagName":"字符串","id":17603,"name":"字符串"},{"tagId":10665,"tagName":"存储","id":10665,"name":"存储"}]}]},"video":{"fetchStatus":"none","done":false,"nextPageNumber":1,"pageSize":20,"total":0,"list":[]}},"relatedProducts":[{"id":0,"type":1,"name":"","cnName":"","iconUrl":"//cloudcache.tencent-cloud.com/qcloud/developer/images/release/team/product-default-icon.v1.svg","intro":"","introUrl":"","desc":"","documentUrl":"","features":"null","weight":0}],"relatedDevdocs":[],"activeUsers":[],"hotColumns":[{"id":1143,"name":"杨焱的专栏","desc":"","icon":"https://imgcache.qq.com/qcloud/developer/images/release/column-icons/16.png","background":"https://cloudcache.tencent-cloud.cn/qcloud/developer/images/release/column-bgs/5.svg","status":2,"creatorId":471675,"memberCount":1,"articleCount":238,"followCount":28,"createdTime":1491012216,"creator":{"id":471675,"uid":471675,"name":"前Thoughtworks-杨焱","label":"十多年前后端项目老开发,技术领域接触的比较广泛。喜欢发现和琢磨工具使用的技巧,探索新工具,新方法。","avatar":"https://developer.qcloudimg.com/http-save/10011/469835a0a6bc57f5c163a80c7cf653a1.jpg","province":"1314","city":"1315","company":"Thoughtworks","title":"软件工程师","school":"清华IT培训认证中心","major":"软件开发","homePage":"https://www.firegod.cn","region":1,"jobType":1,"graduationDate":"","education":0,"specialityIds":[10318,10649],"specialities":[],"gender":1,"trade":"","growthLevel":0,"isProfessionVerified":true,"upvoteCount":0,"followingCount":3,"followerCount":18,"questionCount":0,"answerCount":0,"followQuestionCount":0,"followTagCount":0,"favorAnswerCount":0,"beHandPickedCount":0,"followColumnCount":2,"articleCount":239,"validArticleCount":238}},{"id":1165,"name":"饶文津的专栏","desc":"","icon":"https://imgcache.qq.com/qcloud/developer/images/release/column-icons/13.png","background":"","status":2,"creatorId":903492,"memberCount":1,"articleCount":478,"followCount":35,"createdTime":1492067144,"creator":{"id":903492,"uid":903492,"name":"饶文津","label":"","avatar":"https://ask.qcloudimg.com/avatar/female/rkclsi9ZHum.png","province":"","city":"","company":"","title":"","school":"","major":"","homePage":"","region":1,"jobType":1,"graduationDate":"","education":0,"specialityIds":[10308],"specialities":[],"gender":1,"trade":"","growthLevel":0,"isProfessionVerified":false,"upvoteCount":0,"followingCount":3,"followerCount":21,"questionCount":0,"answerCount":1,"followQuestionCount":0,"followTagCount":0,"favorAnswerCount":0,"beHandPickedCount":0,"followColumnCount":2,"articleCount":478,"validArticleCount":478}},{"id":1223,"name":"张善友的专栏","desc":"","icon":"https://imgcache.qq.com/qcloud/developer/images/release/column-icons/8.png","background":"","status":2,"creatorId":410847,"memberCount":1,"articleCount":1537,"followCount":138,"createdTime":1494323818,"creator":{"id":410847,"uid":410847,"name":"张善友","label":"腾讯云TVP,微软MVP","avatar":"https://ask.qcloudimg.com/http-save/yehe-410847/fb31b97a3af694f513d249eba5a3ecd3.png","province":"1213","city":"1216","company":"深圳市友浩达科技有限公司","title":"CTO","school":"","major":"","homePage":"","region":1,"jobType":1,"graduationDate":"","education":0,"specialityIds":[10180,10185,10244,10261,10308],"specialities":[],"gender":1,"trade":"","growthLevel":0,"isProfessionVerified":true,"upvoteCount":0,"followingCount":3,"followerCount":400,"questionCount":0,"answerCount":0,"followQuestionCount":0,"followTagCount":0,"favorAnswerCount":0,"beHandPickedCount":0,"followColumnCount":4,"articleCount":1543,"validArticleCount":1540}},{"id":1283,"name":"腾讯技术工程官方号的专栏","desc":"","icon":"https://ask.qcloudimg.com/column-icons/1283/170434/hcgwwmih7d.jpg","background":"","status":2,"creatorId":170434,"memberCount":2,"articleCount":1119,"followCount":911,"createdTime":1496643325,"creator":{"id":170434,"uid":170434,"name":"腾讯技术工程官方号","label":"腾讯技术工程事业群官方微信公众号","avatar":"https://ask.qcloudimg.com/http-save/yehe-170434/568f3e8410f6654284c65b8e886345e3.png","province":"1213","city":"1216","company":"腾讯","title":"产品经理","school":"","major":"","homePage":"","region":1,"jobType":1,"graduationDate":"","education":0,"specialityIds":[10539,10244,10149,10333,10245],"specialities":[],"gender":1,"trade":"","growthLevel":0,"isProfessionVerified":true,"upvoteCount":0,"followingCount":1,"followerCount":1573,"questionCount":0,"answerCount":0,"followQuestionCount":0,"followTagCount":0,"favorAnswerCount":0,"beHandPickedCount":0,"followColumnCount":2,"articleCount":1122,"validArticleCount":1119}}],"recommendedTags":[],"env":"production","documentBaseTitle":"腾讯云开发者社区-腾讯云","cdnDomain":"cloudcache.tencent-cloud.cn","cssDomain":"cloudcache.tencent-cloud.cn","qcloudDomain":"cloud.tencent.com","consoleDomain":"console.cloud.tencent.com","qcommunity_identify_id":"eWjro4NutvqmfehRSZNN7","session":{"isLogined":false,"isQcloudUser":false,"isOwner":false,"nickname":"","accountInfoCompleted":false,"phoneCompleted":false,"profile":{},"contactPhoneCompleted":false,"userInfo":{}},"pvId":"RFtlLG8-neB900u7n6YrZ","userIp":"8.222.208.146","fromMiniProgram":false,"route":{"url":"/developer/tag/17603","path":"/developer/tag/17603","pathname":"/developer/tag/17603","search":null,"query":{},"segments":["developer","tag","17603"]}}); </script><script class=""> if (!Element.prototype.matches) Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector; if (!Element.prototype.closest) Element.prototype.closest = function(s) { var el = this; if (!document.documentElement.contains(el)) return null; do { if (el.matches(s)) return el; el = el.parentElement; } while (el !== null); return null; }; window.addEventListener('mouseover', function(evt) { const target = evt.target; if (!target) { return; } const aEle = target.closest('a'); if (!aEle) { return; } let href = aEle.getAttribute('href'); if (!href) { return; } href = href.replace(/cloud.tencent.com.cn|cloud.tencent.com|cloud.tencent.cn/g, 'cloud.tencent.com'); aEle.setAttribute('href', href); }, true); </script></body></html>