{"id":159442,"date":"2019-10-17T09:12:48","date_gmt":"2019-10-17T01:12:48","guid":{"rendered":"https:\/\/gulass.cn\/?p=159442"},"modified":"2019-09-26T15:32:46","modified_gmt":"2019-09-26T07:32:46","slug":"c-const-buffsize","status":"publish","type":"post","link":"https:\/\/gulass.cn\/c-const-buffsize.html","title":{"rendered":"C++ const \u5f15\u7528 \u6307\u9488"},"content":{"rendered":"
\u5148\u7b80\u5355\u56de\u5fc6\u4e00\u4e0b\u5e38\u91cf\u7684\u6027\u8d28\uff1a<\/p>\n
int main()\r\n{\r\n const int buffSize = 512;\r\n buffsize = 512; \/\/\u00d7 buffSize\u662f\u5e38\u91cf\r\n}\r\n<\/pre>\n\u521d\u59cb\u5316\u65f6\uff1a<\/p>\n
\r\nconst int i = get_val(); \/\/\u221a \u8fd0\u884c\u65f6\u521d\u59cb\u5316\r\nconst int j = 42; \/\/\u221a \u7f16\u8bd1\u65f6\u521d\u59cb\u5316\r\nconst int k; \/\/\u00d7 k\u672a\u7ecf\u521d\u59cb\u5316\r\n<\/pre>\n\u5f53\u7528\u4e00\u4e2a\u5bf9\u8c61\u53bb\u521d\u59cb\u5316\u53e6\u5916\u4e00\u4e2a\u5bf9\u8c61\uff0c\u4ed6\u4eec\u662f\u4e0d\u662fconst\u5c31\u65e0\u5173\u7d27\u8981<\/p>\n
\r\nint i = 42;\r\nconst int ci = i;\r\nint j = ci;\r\n<\/pre>\nci\u662f\u6574\u5f62\u5e38\u91cf\uff0c\u4f46ci\u7684\u5e38\u91cf\u7279\u5f81\u4ec5\u4ec5\u5728\u6267\u884c \u6539\u53d8ci \u7684\u64cd\u4f5c\u65f6\u624d\u4f1a\u53d1\u6325\u4f5c\u7528<\/p>\n
const\u548c\u5f15\u7528#<\/p>\n
\u5bf9\u5e38\u91cf\u7684\u5f15\u7528#<\/p>\n
\u628a\u5f15\u7528\u7ed1\u5b9a\u5230const\u5bf9\u8c61\u4e0a\uff0c\u79f0\u4e4b\u4e3a\u5bf9\u5e38\u91cf\u7684\u5f15\u7528<\/p>\n
\u5bf9\u5e38\u91cf\u7684\u5f15\u7528\u4e0d\u80fd\u7528\u4f5c\u4fee\u6539\u5b83\u6240\u7ed1\u5b9a\u7684\u5bf9\u8c61\uff0c\u5f15\u7528 \u53ca\u5176 \u5f15\u7528\u7684\u5bf9\u8c61 \u90fd\u662f\u5e38\u91cf<\/p>\n
const int ci = 1024;\r\nconst int &r1 = ci;\r\n<\/pre>\n\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a<\/p>\n
const int ci = 1024;\r\nconst int &r1 = ci;\r\nr1 = 42; \/\/\u00d7 r1\u662f\u5bf9\u5e38\u91cf\u7684\u5f15\u7528\r\nint &r2 = ci; \/\/\u00d7 r2\u662f\u4e00\u4e2a\u975e\u5e38\u91cf\u5f15\u7528\uff0cci\u662f\u4e00\u4e2a\u5e38\u91cf\u5bf9\u8c61\r\n<\/pre>\n\u56e0\u4e3a\u4e0d\u5141\u8bb8\u628aci\u7528\u4f5c\u4fee\u6539\u5b83\u6240\u7ed1\u5b9a\u7684\u5bf9\u8c61\uff0c\u6240\u4ee5\u4e5f\u4e0d\u80fd\u901a\u8fc7\u5f15\u7528\u53bb\u6539\u53d8ci\uff08\u5047\u8bbe\u7b2c\u56db\u53e5\u5408\u6cd5\uff0c\u90a3\u6211\u4eec\u5c31\u53ef\u4ee5\u901a\u8fc7r2\u53bb\u6539\u53d8ci\u4e86\uff0c\u663e\u7136\u662f\u4e0d\u5bf9\u7684\uff09<\/p>\n
\u4ee5\u4e0b\u4e24\u53e5\u540c\u7406<\/p>\n
int &r3 = r1; \/\/\u00d7\r\nconst int &r4 = r1; \/\/\u221a\r\n<\/pre>\n\u6211\u4eec\u53e3\u5934\u6240\u8bf4\u7684\u5e38\u91cf\u5f15\u7528\u5176\u5b9e\u662f\u5bf9const\u7684\u5f15\u7528\uff0c\u4e25\u683c\u6765\u8bf4\u662f\u4e0d\u5b58\u5728\u5e38\u91cf\u5f15\u7528\u7684\uff0c\u56e0\u4e3a\u548c\u6307\u9488\u4e0d\u4e00\u6837\uff0c\u5f15\u7528\u4e0d\u662f\u5bf9\u8c61\uff0c\u6211\u4eec\u6ca1\u6709\u529e\u6cd5\u8ba9\u5f15\u7528\u672c\u8eab\u5f88\u5b9a\u4e0d\u53d8<\/p>\n
\uff08P.S:\u7531\u4e8eC++\u4e0d\u5141\u8bb8\u968f\u610f\u6539\u53d8\u5f15\u7528\u6240\u7ed1\u5b9a\u7684\u5bf9\u8c61\uff0c\u6240\u4ee5\u4e5f\u53ef\u4ee5\u7406\u89e3\u4e3a\uff0c\u6240\u6709\u7684\u5f15\u7528\u90fd\u662f\u5e38\u91cf\uff0c\u5f53\u7136\u4e86\uff0c\u5f15\u7528\u7684\u5bf9\u8c61\u662f\u5426\u662f\u5e38\u91cf\uff0c\u4f1a\u51b3\u5b9a\u5176\u6240\u80fd\u53c2\u4e0e\u7684\u64cd\u4f5c\uff0c\u4f46\u65e0\u8bba\u5982\u4f55\u4e5f\u4e0d\u4f1a\u5f71\u54cd\u5230\u5f15\u7528\u548c\u5bf9\u8c61\u7684\u7ed1\u5b9a\u5173\u7cfb\uff09<\/p>\n
\u521d\u59cb\u5316\u5bf9\u5e38\u91cf\u7684\u5f15\u7528#<\/p>\n
\u6211\u4eec\u77e5\u9053\u5f15\u7528\u7684\u7c7b\u578b\u5fc5\u987b\u8981\u548c\u6240\u5f15\u7528\u7684\u5bf9\u8c61\u7c7b\u578b\u4e00\u81f4\uff0c\u4f46\u6d89\u53ca\u521d\u59cb\u5316\u5e38\u91cf\u7684\u5f15\u7528\u4f1a\u51fa\u73b0\u7b2c\u4e8c\u79cd\u4f8b\u5916\uff08\u7b2c\u4e00\u79cd\uff1a\u521d\u59cb\u5316\u5e38\u91cf\u5f15\u7528\u662f\u5141\u8bb8\u7528\u4efb\u610f\u8868\u8fbe\u5f0f\u4f5c\u4e3a\u521d\u59cb\u503c\uff0c\u53ea\u8981\u8be5\u8868\u8fbe\u5f0f\u80fd\u8f6c\u6362\u6210\u5f15\u7528\u7684\u7c7b\u578b\uff09<\/p>\n
int i = 42;\r\nconst int &r1 = i; \/\/\u221a \u5141\u8bb8const int\u7ed1\u5b9a\u5230\u4e00\u4e2a\u666e\u901aint\u5bf9\u8c61\u4e0a\r\nconst int &r2 = 42; \/\/\u221a r2\u662f\u4e00\u4e2a\u5e38\u91cf\u5f15\u7528\r\nconst int &r3 = r1 * 2; \/\/\u221a r3\u662f\u4e00\u4e2a\u5e38\u91cf\u5f15\u7528\r\nint &r4 = r1 * 2; \/\/\u00d7 r4\u662f\u4e00\u4e2a\u666e\u901a\u7684\u975e\u5e38\u91cf\u5f15\u7528\r\n<\/pre>\n\u4e3a\u4ec0\u4e48\u4f1a\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\uff1f\u5148\u6765\u770b\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50<\/p>\n
double dval = 0.114514;\r\nconst int &ri = dval;\r\ncout < < \"ri = \" << ri <\n \u8fd0\u884c\u8f93\u51fa
\nri=0
\n\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u5176\u5b9e\u662f\u7f16\u8bd1\u5668\u628a\u4ee3\u7801\u6539\u6210\u4e86\uff1a<\/p>\ndouble dval = 0.114514;\r\nconst int temp = dval;\r\nconst int &ri = temp;\r\ncout < < \"ri = \" << ri <\n \u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0cri\u7ed1\u5b9a\u4e86\u4e00\u4e2a\u4e34\u65f6\u91cf\u5bf9\u8c61\uff0c\u8fd9\u4e0b\u4f60\u53ef\u770b\u61c2\u4e0a\u9762\u7684\u4ee3\u7801\u53d1\u751f\u4e86\u4ec0\u4e48\u4e86\u5427<\/p>\n
\u4f60\u53ef\u4ee5\u60f3\u8c61\u4ee5\u4e0b\uff0c\u5982\u679cri\u4e0d\u662f\u5e38\u91cf\u65f6\uff0c\u6267\u884c\u4e86\u4e0a\u8ff0\u521d\u59cb\u5316\u8fc7\u7a0b\u4f1a\u5e26\u6765\u600e\u6837\u7684\u540e\u679c\uff1a\u5982\u679cri\u4e0d\u662f\u5e38\u91cf\u3002\u5c31\u5141\u8bb8\u5bf9ri\u8d4b\u503c\uff0c\u8fd9\u6837\u5c31\u4f1a\u6539\u53d8ri\u6240\u5f15\u7528\u5bf9\u8c61\u7684\u503c\uff08\u6b64\u65f6\u7ed1\u5b9a\u7684\u662f\u4e34\u65f6\u91cf\u800c\u975edval\uff09\uff0c\u6240\u4ee5C++\u4e5f\u628a\u4ee5\u4e0b\u8fd9\u79cd\u884c\u4e3a\u5f52\u4e3a\u975e\u6cd5<\/p>\n
double dval = 0.114514;\r\nint &ri = dval; \/\/\u00d7\r\ncout < < \"ri = \" << ri <\n \u540c\u65f6\u6ce8\u610f\uff0c\u5bf9const\u7684\u5f15\u7528\u53ef\u80fd\u5f15\u7528\u4e00\u4e2a\u5e76\u975econst\u7684\u5bf9\u8c61<\/p>\n
\u5bf9const\u7684\u5f15\u7528\u4ec5\u5bf9\u5f15\u7528\u53ef\u53c2\u4e0e\u7684\u64cd\u4f5c\u505a\u51fa\u4e86\u9650\u5b9a\uff0c\u5bf9\u4e8e\u5f15\u7528\u5bf9\u8c61\u672c\u8eab\u662f\u5426\u662f\u4e00\u4e2a\u5e38\u91cf\u6ca1\u6709\u505a\u51fa\u9650\u5b9a\uff0c\u56e0\u6b64\u5bf9\u8c61\u4e5f\u53ef\u80fd\u662f\u4e2a\u975e\u5e38\u91cf\uff0c\u5141\u8bb8\u901a\u8fc7\u5176\u4ed6\u9014\u5f84\u6539\u53d8\u5b83\u7684\u503c<\/p>\n
int i = 42;\r\nint &r1 = i;\r\nconst int &r2 = i;\r\n\/\/r2 = 0; \/\/\u00d7 r2\u662f\u4e00\u4e2a\u5e38\u91cf\u5f15\u7528\r\ncout < < \"r2 = \" << r2 <\n \u8be5\u7a0b\u5e8f\u8f93\u51fa\u5982\u4e0b\uff1a<\/p>\n
\r\nr2 = 42\r\nr2 = 0\r\n<\/pre>\nconst\u548c\u6307\u9488#<\/p>\n
\u6307\u5411\u5e38\u91cf\u7684\u6307\u9488#<\/p>\n
\u7c7b\u4f3c\u4e8e\u5bf9\u5e38\u91cf\u7684\u5f15\u7528\uff0c\u6307\u5411\u5e38\u91cf\u7684\u6307\u9488\u4e0d\u80fd\u7528\u4e8e\u6539\u53d8\u5176\u6240\u6307\u5bf9\u8c61\u7684\u503c<\/p>\n
\u540c\u65f6\uff0c\u60f3\u8981\u5b58\u653e\u5e38\u91cf\u5bf9\u8c61\u7684\u5730\u5740\uff0c\u53ea\u80fd\u4f7f\u7528\u6307\u5411\u5e38\u91cf\u7684\u6307\u9488\uff1a<\/p>\n
const double homo = 1.14;\r\ndouble *ptr = &homo; \/\/\u00d7 ptr\u662f\u4e00\u4e2a\u666e\u901a\u6307\u9488\r\nconst double *cptr = &homo; \/\/\u221a\r\ncptr = 5.14 \/\/\u00d7 \u4e0d\u80fd\u7ed9*cptr\u8d4b\u503c\r\n<\/pre>\n\u4e0d\u540c\u4e8e\u5f15\u7528\uff0c\u6211\u4eec\u80fd\u6539\u53d8\u6307\u5411\u5e38\u91cf\u7684\u6307\u9488\u6240\u6307\u5411\u7684\u5bf9\u8c61<\/p>\n
const double homo = 1.14;\r\nconst double *cptr = &homo;\r\ncout < < \"cptr = \" << *cptr <\n \u6ce8\u610f\uff0c\u4e0e\u5f15\u7528\u7c7b\u4f3c\uff0c\u867d\u7136\u6211\u4eec\u8bf4\u6307\u9488\u7684\u7c7b\u578b\u5fc5\u987b\u4e0e\u6240\u6307\u5bf9\u8c61\u4e00\u81f4\uff0c\u4f46\u662f\u8fd9\u91cc\u6709\u7b2c\u4e00\u79cd\u4f8b\u5916\uff1a\u5141\u8bb8\u4e00\u4e2a\u6307\u5411\u5e38\u91cf\u7684\u6307\u9488\u6307\u5411\u4e00\u4e2a\u975e\u5e38\u91cf\u5bf9\u8c61<\/p>\n
const double homo = 1.14;\r\nconst double *cptr = &homo;\r\ndouble dval = 3.14;\r\ncptr = &dval; \/\/\u5141\u8bb8\u4e00\u4e2a \u6307\u5411\u5e38\u91cf\u7684\u6307\u9488 \u6307\u5411 \u4e00\u4e2a\u975e\u5e38\u91cf\u5bf9\u8c61\r\n*cptr = 0.0 \/\/\u4f46\u662f\u4e0d\u5141\u8bb8\u901a\u8fc7 \u6307\u5411\u5e38\u91cf\u7684\u6307\u9488 \u4fee\u6539\u975e\u5e38\u91cf\u5bf9\u8c61\u7684\u503c\r\n<\/pre>\n\u6240\u4ee5\uff0c\u6307\u5411\u5e38\u91cf\u7684\u6307\u9488\u4e5f\u6ca1\u6709\u89c4\u5b9a\u5176\u6240\u6307\u7684\u5bf9\u8c61\u5fc5\u987b\u662f\u4e00\u4e2a\u5e38\u91cf\uff0c\u6240\u8c13\u6307\u5411\u5e38\u91cf\u4ec5\u4ec5\u8981\u6c42\u4e0d\u80fd\u901a\u8fc7\u8be5\u6307\u9488\u4fee\u6539\u6240\u6307\u5411\u5bf9\u8c61\u7684\u503c\uff0c\u800c\u6ca1\u6709\u89c4\u5b9a\u6240\u6307\u5bf9\u8c61\u7684\u503c\u4e0d\u80fd\u901a\u8fc7\u5176\u4ed6\u9014\u5f84\u6539\u53d8<\/p>\n
const double homo = 1.14;\r\nconst double *cptr = &homo;\r\ncout < < \"cptr = \" << *cptr <\n \u73b0\u5728\u6211\u4eec\u8f93\u51fa\u5c31\u53d8\u6210\u4e86\uff1a<\/p>\n
\r\ncptr = 1.14\r\ncptr = 5.14\r\ncptr = 0\r\n<\/pre>\nconst\u6307\u9488#<\/p>\n
\u548c\u5f15\u7528\u4e0d\u540c\uff0c\u6307\u9488\u672c\u8eab\u662f\u5bf9\u8c61\uff0c\u6240\u4ee5\u5141\u8bb8\u628a\u6307\u9488\u672c\u8eab\u5b9a\u4e3a\u5e38\u91cf\uff0c\u4e5f\u5c31\u662f\u5e38\u91cf\u6307\u9488\uff0c\u5e38\u91cf\u6307\u9488\u5fc5\u987b\u88ab\u521d\u59cb\u5316\uff0c\u5e76\u4e14\u521d\u59cb\u5316\u5b8c\u6210\u540e\u503c\uff08\u5b58\u653e\u5728\u6307\u9488\u5bf9\u8c61\u91cc\u7684\u5730\u5740\uff09\u4e0d\u80fd\u6539\u53d8<\/p>\n
\u628a*\u653econst\u5173\u952e\u5b57\u4e4b\u524d\uff0c\u7528\u4ee5\u8bf4\u660e\u6307\u9488\u662f\u4e00\u4e2a\u5e38\u91cf\uff08\u5373\u4e0d\u53d8\u7684\u662f\u6307\u9488\u672c\u8eab\u7684\u503c\uff09<\/p>\n
int errorNumb = 0;\r\nint* const curErr = &errorNumb; \/\/curErr\u662f\u4e00\u4e2a\u5e38\u91cf\u6307\u9488\uff0c\u4e00\u76f4\u6307\u5411errNumb\r\nconst double pi = 3.1415;\r\nconst double* const pip = π \/\/pip\u662f\u4e00\u4e2a \u6307\u5411\u5e38\u91cf\u5bf9\u8c61 \u7684 \u5e38\u91cf\u6307\u9488\r\n<\/pre>\n\u4ee5\u4e0b\u4e24\u79cd\u5199\u6cd5\u533a\u522b\u5f88\u5927\uff1a<\/p>\n
int* const curErr = &errorNumb; \/\/curErr\u4e00\u76f4\u6307\u5411errNumb\r\n*curErr = 1; \/\/\u53ef\u4ee5\u4fee\u6539\u6240\u6307\u53d8\u91cf\u7684\u503c\r\nconst int* curErr = &errorNumb; \/\/curErr\u662f\u4e00\u4e2a \u6307\u5411\u5e38\u91cf\u7684\u6307\u9488\r\n*curErr = 1; \/\/\u00d7 \u4e0d\u80fd\u901a\u8fc7curErr\u4fee\u6539\u6240\u6307\u5bf9\u8c61\u7684\u503c\r\n<\/pre>\n\u9876\u5c42const\u548c\u5e95\u5c42const#<\/p>\n
\u7531\u4e8e\u6307\u9488\u672c\u8eab\u662f\u4e00\u4e2a\u5bf9\u8c61\uff0c\u5b83\u53c8\u53ef\u4ee5\u6307\u5411\u53e6\u5916\u4e00\u4e2a\u5bf9\u8c61\uff0c\u56e0\u6b64\u6307\u9488\u672c\u8eab\u662f\u4e0d\u662f\u5e38\u91cf\u548c\u6307\u9488\u6240\u6307\u7684\u5bf9\u8c61\u662f\u4e0d\u662f\u5e38\u91cf\u5c31\u662f\u4e24\u4e2a\u4e92\u76f8\u72ec\u7acb\u7684\u95ee\u9898\uff0c\u9876\u5c42const\u8868\u793a\u6307\u9488\u672c\u8eab\u662f\u4e2a\u5e38\u91cf\uff0c\u5e95\u5c42const\u8868\u793a\u6307\u9488\u6240\u6307\u7684\u5bf9\u8c61\u662f\u4e2a\u5e38\u91cf<\/p>\n
\u9876\u5c42const\u5176\u5b9e\u53ef\u4ee5\u8868\u793a\u4efb\u610f\u7684\u5bf9\u8c61(\u81ea\u8eab)\u662f\u5e38\u91cf\uff0c\u6307\u9488\u5f0f\u6bd4\u8f83\u7279\u6b8a\u7684\uff0c\u56e0\u4e3a\u5b83\u65e2\u53ef\u4ee5\u662f\u9876\u5c42\u4e5f\u53ef\u4ee5\u662f\u5e95\u5c42const<\/p>\n
int i = 0;\r\nint* const p1 = &i; \/\/p1\u672c\u8eab\u662f\u5e38\u91cf\uff0c\u9876\u5c42const\r\nconst int ci = 42; \/\/ci\u672c\u8eab\u662f\u5e38\u91cf\uff0c\u9876\u5c42const\r\nconst int* p2 = &ci; \/\/*\u5728const\u4e4b\u540e\uff0cp2\u662f\u6307\u5411\u5e38\u91cf\u7684\u6307\u9488\uff0c\u5e95\u5c42const\r\nconst int* const p3 = p2; \/\/\u5148\u770b\u5de6\u8fb9\u662f\u9876\u5c42\uff0c\u518d\u770b\u53f3\u8fb9\u662f\u5e95\u5c42\uff0cp3\u662f\u6307\u5411\u5e38\u91cf\u7684\u5e38\u91cf\u6307\u9488\r\nconst int& r = ci; \/\/\u58f0\u660e\u5f15\u7528\u7684const\u90fd\u662f\u5e95\u5c42const\uff0cr\u662f\u4e00\u4e2a\u5bf9\u5e38\u91cf\u7684\u5f15\u7528\r\n<\/pre>\n\u62f7\u8d1d\u64cd\u4f5c\u4e0d\u4f1a\u5f71\u54cd\u88ab\u62f7\u8d1d\u5bf9\u8c61\u7684\u503c\uff0c\u9876\u5c42const\u4e0d\u53d7\u5f71\u54cd<\/p>\n
i = ci;\r\np2 = p3;\r\n<\/pre>\n\u4f46\u662f\u5e95\u5c42const\u5c31\u4f1a\u4ea7\u751f\u9650\u5236\uff1a<\/p>\n
\u62f7\u8d1d\u64cd\u4f5c\u65f6\uff0c\u62f7\u5165\u548c\u62f7\u51fa\u7684\u5bf9\u8c61\u5fc5\u987b\u6709\u76f8\u540c\u7684\u5e95\u5c42const\u8d44\u683c\uff0c\u6d3b\u7740\u4e24\u4e2a\u5bf9\u8c61\u6570\u636e\u7c7b\u578b\u80fd\u8f6c\u6362\uff08\u975e\u5e38\u91cf\u80fd\u8f6c\u6210\u5e38\u91cf\uff0c\u53cd\u4e4b\u4e0d\u884c\uff09<\/p>\n
int* p = p3; \/\/\u00d7 p3\u5305\u542b\u5e95\u5c42const\uff0cp\u6ca1\u6709\r\nconst int* p = p3; \/\/\u221a p\u548cp3\u90fd\u662f\u5e95\u5c42const\r\np2 = p3; \/\/\u221a p2\u548cp3\u90fd\u662f\u5e95\u5c42const\r\np2 = &i; \/\/\u221a int\u80fd\u8f6c\u6362\u6210const int*\r\nint& r = ci; \/\/\u00d7 \u666e\u901aint&\u4e0d\u80fd\u7ed1\u5230const int&\u4e0a\r\nconst int& r2 = i; \/\/\u221a const int&\u53ef\u4ee5\u7ed1\u5230\u4e00\u4e2a\u666e\u901aint\u4e0a\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"\u5148\u7b80\u5355\u56de\u5fc6\u4e00\u4e0b\u5e38\u91cf\u7684\u6027\u8d28\uff1a int main() { const int buffSize = 512; bu […]<\/p>\n","protected":false},"author":63,"featured_media":159444,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-159442","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/159442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=159442"}],"version-history":[{"count":4,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/159442\/revisions"}],"predecessor-version":[{"id":159782,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/159442\/revisions\/159782"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/159444"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=159442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=159442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=159442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}