{"id":2972,"date":"2015-10-24T15:23:13","date_gmt":"2015-10-24T07:23:13","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=2972"},"modified":"2015-10-24T15:23:13","modified_gmt":"2015-10-24T07:23:13","slug":"%e6%8a%b1%e6%ad%89%ef%bc%8c%e6%88%91%e4%b9%9f%e6%98%af%e5%a4%b4%e6%ac%a1%e7%9f%a5%e9%81%93-format-%e7%9a%84%e5%8f%82%e6%95%b0%e5%8f%af%e4%bb%a5%e8%bf%99%e4%b9%88%e7%8e%a9","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=2972","title":{"rendered":"\u62b1\u6b49\uff0c\u6211\u4e5f\u662f\u5934\u6b21\u77e5\u9053 Format \u7684\u53c2\u6570\u53ef\u4ee5\u8fd9\u4e48\u73a9"},"content":{"rendered":"<p>\u6298\u817e Delphi \u8fd9\u4e48\u4e45\uff0c\u6211\u4e5f\u662f\u5728\u7ffb\u8bd1\u7cfb\u7edf\u8d44\u6e90\u7684\u65f6\u5019\uff0c\u624d\u6ce8\u610f\u5230\u6709\u7c7b\u4f3c\u4e0b\u9762\u7684\u9b3c\u602a\u51fa\u6ca1\uff1a<\/p>\n<blockquote><p>&#8230;. %0:d &#8230; %1:s<\/p><\/blockquote>\n<p>\u5f53\u524d\u7fa4\u91cc\u8fd8\u6709\u4eba\u95ee\u4e86\u600e\u4e48\u4e2a\u610f\u601d\uff1f\u6211\u672c\u7740\u6211\u4e0d\u7cca\u5f04\u4eba\u8c01\u7cca\u5f04\u4eba\u7684\u4f1f\u5927\u4eba\u9053\u4e3b\u4e49\u7cbe\u795e\uff0c\u5927\u58f0\u7684\u544a\u8bc9\u4eba\u5bb6\u6211\u4e5f\u4e0d\u77e5\u9053\u3002\u4e0d\u8fc7\u5f53\u4eca\u5929\u518d\u6b21\u9047\u5230\u7684\u65f6\u5019\uff0c\u5374\u4e0d\u5c0f\u5fc3\u89e6\u52a8\u4e86\u597d\u5947\u5bb3\u6b7b\u72d7\u7684\u7cbe\u795e\uff0c\u4e8e\u662f\u5c1d\u8bd5\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u539f\u6765\u771f\u7684\u53ef\u4ee5\u6307\u5b9a\u683c\u5f0f\u5316\u7b2c\u51e0\u4e2a\u53c2\u6570\u3002\u201c%\u201d \u540e\u9762\u8ddf\u7684\u6570\u5b57\u662f\u7b2c\u51e0\u4e2a\u53c2\u6570\uff0c\u7136\u540e\u8ddf \u201c:\u201d\uff0c\u7136\u540e\u8ddf\u7c7b\u578b\u683c\u5f0f\u5316\u7b26\u53f7\u3002\u6bd4\u5982\uff1a<\/p>\n<blockquote><p>Format(&#8216;Hello %1:s,you have %0:d times remain.&#8217;,[100,&#8217;Jone&#8217;]);<\/p><\/blockquote>\n<p>\u7136\u540e\u683c\u5f0f\u5316\u7684\u7ed3\u679c\u662f\uff1a<\/p>\n<blockquote><p>Hello Jone,you have 100 times remain.<\/p><\/blockquote>\n<p>\u597d\u5427\uff0c\u53c8\u5b66\u4e86\u4e00\u4e2a\u5c0f\u6280\u5de7\uff0c\u4e0d\u6562\u72ec\u541e\uff0c\u8bb0\u5f55\u4e0b\u6765\uff0c\u544a\u8bc9\u5927\u5bb6\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6298\u817e Delphi \u8fd9\u4e48\u4e45\uff0c\u6211\u4e5f\u662f\u5728\u7ffb\u8bd1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8,21],"tags":[477,85,478],"class_list":["post-2972","post","type-post","status-publish","format-standard","hentry","category-delphi","category-misc","tag-format","tag-85","tag-478"],"views":4363,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2972"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2972\/revisions"}],"predecessor-version":[{"id":2973,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2972\/revisions\/2973"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}