{"id":572,"date":"2023-02-25T19:14:57","date_gmt":"2023-02-25T11:14:57","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=572"},"modified":"2023-04-29T20:33:21","modified_gmt":"2023-04-29T12:33:21","slug":"swift-binary-octal-hexadecimal-representation","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/swift-binary-octal-hexadecimal-representation\/","title":{"rendered":"Swift &#8211; \u4e8c\u8fdb\u5236\uff0c\u516b\u8fdb\u5236\uff0c\u5341\u516d\u8fdb\u5236\u7684\u8868\u793a\u65b9\u6cd5"},"content":{"rendered":"<blockquote>\n<p>\u6ce8\uff1a\u4ee3\u7801\u5df2\u5347\u7ea7\u81f3Swift4<\/p>\n<\/blockquote>\n<p>\u6574\u6570\u5404\u79cd\u8fdb\u5236\u7684\u5b57\u9762\u91cf\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u5341\u8fdb\u5236\u6570\uff0c\u6ca1\u6709\u524d\u7f00<\/li>\n<li>\u4e8c\u8fdb\u5236\u6570\uff0c\u524d\u7f00\u662f0b<\/li>\n<li>\u516b\u8fdb\u5236\u6570\uff0c\u524d\u7f00\u662f0o<\/li>\n<li>\u5341\u516d\u8fdb\u5236\u6570\uff0c\u524d\u7f00\u662f0x<\/li>\n<\/ul>\n<p><!-- more --><\/p>\n<pre><code class=\"language-swift\">let decimalInteger = 19\nlet binaryInteger = 0b10011       \/\/ \u4e8c\u8fdb\u5236\u768419\nlet octalInteger = 0o23           \/\/ \u516b\u8fdb\u5236\u768419\nlet hexadecimalInteger = 0x13     \/\/ \u5341\u516d\u8fdb\u5236\u768419<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6ce8\uff1a\u4ee3\u7801\u5df2\u5347\u7ea7\u81f3Swift4 \u6574\u6570\u5404\u79cd\u8fdb\u5236\u7684\u5b57\u9762\u91cf\u5982\u4e0b\uff1a \u5341\u8fdb\u5236\u6570\uff0c\u6ca1\u6709\u524d\u7f00 \u4e8c\u8fdb\u5236\u6570\uff0c\u524d\u7f00\u662f0b \u516b\u8fdb\u5236\u6570\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[171],"tags":[],"class_list":["post-572","post","type-post","status-publish","format-standard","hentry","category-swift"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=572"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/572\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}