{"id":29551,"date":"2024-11-25T10:38:10","date_gmt":"2024-11-25T02:38:10","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29551\/"},"modified":"2024-11-25T10:38:10","modified_gmt":"2024-11-25T02:38:10","slug":"asp-net%e4%bb%a3%e7%a0%81%e8%bd%bb%e6%9d%be%e5%ae%9e%e7%8e%b0%e5%be%ae%e4%bf%a1%e6%8a%a2%e7%ba%a2%e5%8c%85","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29551\/","title":{"rendered":"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305"},"content":{"rendered":"<p style=\"text-align: left\">\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4e3a\u5927\u5bb6\u76f8\u8bb8\u4ecb\u7ecd\u4e86\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u7684ASP.NET\u4ee3\u7801\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u4eec\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b<\/p>\n<p style=\"text-align: left\">\u7fa4\u91cc\u90fd\u5728\u73a9\u62a2\u7ea2\u5305,\u62a2\u4e86\u518d\u53d1\uff0c\u53d1\u4e86\u518d\u62a2\uff0c\u7b80\u76f4\u662f\u65e0\u804a\uff0c\u7a0b\u5e8f\u5458\u611f\u5174\u8da3\u662f\u7684\u5982\u4f55\u5b9e\u73b0\uff0c\u8fd9\u91cc\u7b80\u5355\u8bf4\u8bf4\u5b9e\u73b0\u601d\u8def\uff0c\u9644\u4e0adome\uff0c\u4ee3\u7801\u6709\u70b9low\uff0c\u597d\u5728\u662f\u5b9e\u73b0\u4e86\uff0c\u5177\u4f53\u5185\u5bb9\u5982\u4e0b&nbsp;<\/p>\n<p style=\"text-align: left\"><strong>\u6b63\u6587<\/strong><\/p>\n<p style=\"text-align: left\"><span style=\"color: #800000\"><strong>100\u5757\u53d130\u4e2a\u7ea2\u5305<\/strong><\/span><\/p>\n<p style=\"text-align: left\">\u3000\u3000<img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/d507d43ea8eaa55a14cfcd3863a7f641-0.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/ffbecfce7759513c46f1ab35d29dd217-1.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe1\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe1\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/ffbecfce7759513c46f1ab35d29dd217-2.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe2\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe2\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/70a82ddd8460d07e8853d9c8514d8531-3.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe3\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe3\" \/><\/p>\n<p style=\"text-align: left\"><span style=\"color: #800000\"><strong>50\u5757\u53d113\u4e2a\u7ea2\u5305<\/strong><\/span><\/p>\n<p style=\"text-align: left\">\u3000\u3000<img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/70a82ddd8460d07e8853d9c8514d8531-4.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe4\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe4\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/81857d925048c6e3fc094248775f2a3e-5.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe5\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe5\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/81857d925048c6e3fc094248775f2a3e-6.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe6\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe6\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/81857d925048c6e3fc094248775f2a3e-7.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe7\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe7\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/394532a5c987b9eaf66ac272641b664b-8.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe8\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe8\" \/><\/p>\n<p style=\"text-align: left\"><span style=\"color: #800000\"><strong>1\u5757\u53d110\u4e2a\u7ea2\u5305<\/strong><\/span><\/p>\n<p style=\"text-align: left\">\u3000\u3000<img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/394532a5c987b9eaf66ac272641b664b-9.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe9\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe9\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/9314aaa5a10bc207a011f6fac274ca5f-10.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe10\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe10\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/9314aaa5a10bc207a011f6fac274ca5f-11.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe11\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe11\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/9314aaa5a10bc207a011f6fac274ca5f-12.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe12\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe12\" \/><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/013\/d877857d094eef6e49a5f8ba70afeccc-13.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe13\" alt=\"ASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u63d2\u56fe13\" \/><\/p>\n<p style=\"text-align: left\">\u53d1\u7ea2\u5305\u9700\u8981\u6ee1\u8db3\u4ee5\u4e0b\u51e0\u4e2a\u6761\u4ef6<\/p>\n<p style=\"text-align: left\">1.\u603b\u91d1\u989d\u4e0d\u53d8<br \/>2.\u6bcf\u4e2a\u7ea2\u5305\u90fd\u5fc5\u987b\u6709\u94b1<br \/>3.\u5c3d\u91cf\u7684\u5747\u5300\u70b9,\u4e0d\u7136\u62a2\u7ea2\u5305\u6ca1\u4ec0\u4e48\u610f\u601d\u4e86&nbsp;<\/p>\n<p style=\"text-align: left\"><span style=\"color: #800000\"><strong>\u5b9e\u73b0\u601d\u8def<\/strong><\/span>1.\u9996\u5148\u8981\u786e\u5b9a\u6700\u5c0f\u5355\u4f4d,\u8fd9\u91cc\u662f\u7cbe\u786e\u5230\u5206,\u6211\u8fd9\u91cc\u4ee5int\u7c7b\u578b\u8fdb\u884c\u8ba1\u7b97,\u5f97\u51fa\u7684\u7ed3\u679c\u4e5f\u5168\u662fint\u7c7b\u578b<br \/>2.\u6570\u636e\u5747\u5300,\u8fd9\u91cc\u4ee5&nbsp; 1 3.\u4f59\u6570\u5904\u7406,\u5f53\u6570\u636e\u5e73\u5747\u7ed920\u4e2a\u7ea2\u5305,\u80af\u5b9a\u8ddf\u603b\u91d1\u989d\u6709\u6240\u504f\u5dee,\u8fd9\u65f6\u5019\u6211\u4eec\u5c31\u8981\u591a\u9000\u5c11\u8865,\u5982\u679c\u5927\u4e8e\u603b\u91d1\u989d,\u8ba9\u7ea2\u5305\u91d1\u989d\u591a\u7684\u53bb\u51cf\u5c11(\u603b\u91d1\u989d\/\u603b\u4eba\u6570),\u5982\u679c\u8fd8\u6709\u5269\u4f59,\u5c31\u8ba9\u7b2c\u4e8c\u591a\u7684\u53bb\u51cf\u5c11,\u76f4\u5230\u8865\u5b8c\u8fd9\u4e2a\u7a7a\u7f3a\u4e3a\u6b62,\u53cd\u4e4b\u4ea6\u7136.<br \/>4.\u6253\u4e71\u987a\u5e8f,\u7ec6\u5fc3\u7684\u56ed\u53cb\u53ef\u80fd\u53d1\u73b0,\u7ea2\u5305\u662f\u6709\u987a\u5e8f\u89c4\u5f8b\u7684,\u6211\u4eec\u5fc5\u987b\u7b80\u5355\u7684\u5199\u4e2afunction\u53bb\u6253\u4e71\u5b83.\u3000\u3000&nbsp;<\/p>\n<p style=\"text-align: left\">demo&nbsp;<\/p>\n<pre>\/\/\/ &lt;summary&gt;\r\n \/\/\/ \u62a2\u7ea2\u5305\r\n \/\/\/ &lt;\/summary&gt;\r\n \/\/\/ &lt;param name=\"money\"&gt;&lt;\/param&gt;\r\n \/\/\/ &lt;param name=\"num\"&gt;&lt;\/param&gt;\r\n \/\/\/ &lt;returns&gt;&lt;\/returns&gt;\r\n public List&lt;int&gt; qhb(int money, int num)\r\n {\r\n  int min = 1;\r\n  int pjs = money \/ num;\r\n  List&lt;int&gt; list = new List&lt;int&gt;();\r\n  Random rnd = new Random();\r\n  for (int i = 0; i &lt; num; i++)\r\n  {\r\n  int max = (money \/ (num - i)) * 2;\r\n  int s = rnd.Next(min, max);\r\n  s = checkmoney(s, min, max);\r\n  list.Add(s);\r\n  money -= s;\r\n  }\r\n  \/\/\u524d\u9762\u6570\u636e\u90fd\u662f\u5408\u7406\u7684,\u7ed3\u5c3e\u5fc5\u987b\u591a\u9000\u5c11\u8865\r\n  list = checklist(money, pjs, list);\r\n  return list;\r\n }<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    <\/p>\n<pre>\/\/\/ &lt;summary&gt;\r\n \/\/\/ \u4f59\u6570\u5904\u7406\r\n \/\/\/ &lt;\/summary&gt;\r\n \/\/\/ &lt;param name=\"money\"&gt;&lt;\/param&gt;\r\n \/\/\/ &lt;param name=\"list\"&gt;&lt;\/param&gt;\r\n \/\/\/ &lt;returns&gt;&lt;\/returns&gt;\r\n public List&lt;int&gt; checklist(int money, int pjs, List&lt;int&gt; list)\r\n {\r\n  if (money != 0)\r\n  {\r\n  if (money &gt; 0)\r\n  {\r\n\r\n   List&lt;int&gt; list_order = maopao(list);\r\n   \/\/\u7ed9\u6700\u5c0f\r\n   if (money \/ pjs == 0)\r\n   {   \r\n   list_order[0] += money;\r\n   }\r\n   else\r\n   {\r\n   for (int i = 0; i &lt; money \/ pjs + 1; i++)\r\n   {\r\n    if (i == money \/ pjs)\r\n    {\r\n    list_order[i] += (money - (money \/ pjs) * pjs);\r\n    }\r\n    else\r\n    {\r\n    list_order[i] += pjs;\r\n    }\r\n\r\n   }\r\n   }\r\n   return list_order;\r\n  }\r\n  else\r\n  {\r\n\r\n   List&lt;int&gt; list_order = maopao(list,\"desc\");\r\n   \/\/\u7ed9\u6700\u5927\r\n   if (money \/ pjs == 0)\r\n   {\r\n\r\n   list_order[0] += money;\r\n   }\r\n   else\r\n   {\r\n   for (int i = 0; i &lt; -(money \/ pjs) + 1; i++)\r\n   {\r\n    if (i == -(money \/ pjs))\r\n    {\r\n    list_order[i] += (money - (money \/ pjs) * pjs);\r\n    }\r\n    else\r\n    {\r\n    list_order[i] -= pjs;\r\n    }\r\n\r\n   }\r\n   }\r\n   return list_order;\r\n  }\r\n  }\r\n  return list;\r\n }<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    <\/p>\n<pre> \/\/\/ &lt;summary&gt;\r\n  \/\/\/ \u5192\u6ce1\u6392\u5e8f\r\n  \/\/\/ &lt;\/summary&gt;\r\n  \/\/\/ &lt;param name=\"list\"&gt;&lt;\/param&gt;\r\n  \/\/\/ &lt;param name=\"order\"&gt;&lt;\/param&gt;\r\n  \/\/\/ &lt;returns&gt;&lt;\/returns&gt;\r\n  public List&lt;int&gt; maopao(List&lt;int&gt; list,string order = \"asc\")\r\n  {\r\n  if (order != \"asc\")\r\n  {\r\n   for (int i = 0; i &lt; list.Count; i++)\r\n   {\r\n   for (int j = 0; j &lt; list.Count - i - 1; j++)\r\n   {\r\n    if (list[j + 1] &gt; list[j])\r\n   {\r\n    int temp = list[j];\r\n    list[j] = list[j + 1];\r\n    list[j + 1] = temp;\r\n \r\n    }\r\n   }\r\n   }\r\n  }\r\n  else \r\n  {\r\n   for (int i = 0; i &lt; list.Count; i++)\r\n   {\r\n   for (int j = 0; j &lt; list.Count-i-1;j++)\r\n   {\r\n    if (list[j+1] &lt; list[j])\r\n    {\r\n    int temp = list[j];\r\n    list[j] = list[j+1];\r\n    list[j+1] = temp;\r\n\r\n   }\r\n   }\r\n  }\r\n  }\r\n  return list;\r\n }<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    <\/p>\n<pre>\/\/\/ &lt;summary&gt;\r\n \/\/\/ \u6253\u4e71\u987a\u5e8f\r\n  \/\/\/ &lt;\/summary&gt;\r\n  \/\/\/ &lt;param name=\"list\"&gt;&lt;\/param&gt;\r\n  \/\/\/ &lt;returns&gt;&lt;\/returns&gt;\r\n public List&lt;int&gt; suiji(List&lt;int&gt; list) \r\n  {\r\n  Random rnd = new Random();\r\n  for (int i = 0; i &lt; list.Count; i++)\r\n  {\r\n   int temp = list[i];\r\n   int j = rnd.Next(0, list.Count-1);\r\n   list[i] = list[j];\r\n   list[j] = temp;\r\n  }\r\n  return list;\r\n }<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fASP.NET\u4ee3\u7801\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4e3a\u5927\u5bb6\u76f8\u8bb8\u4ecb\u7ecd\u4e86\u8f7b\u677e\u5b9e\u73b0\u5fae\u4fe1\u62a2\u7ea2\u5305\u7684ASP.NET\u4ee3\u7801\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u4eec\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b \u7fa4\u91cc\u90fd\u5728\u73a9\u62a2\u7ea2\u5305,\u62a2\u4e86\u518d\u53d1\uff0c\u53d1\u4e86\u518d\u62a2\uff0c\u7b80\u76f4\u662f\u65e0\u804a\uff0c\u7a0b\u5e8f\u5458\u611f\u5174\u8da3\u662f\u7684\u5982\u4f55\u5b9e\u73b0\uff0c\u8fd9\u91cc\u7b80\u5355\u8bf4\u8bf4\u5b9e\u73b0\u601d\u8def\uff0c\u9644\u4e0adome\uff0c\u4ee3\u7801\u6709\u70b9low\uff0c\u597d\u5728\u662f\u5b9e\u73b0\u4e86\uff0c\u5177\u4f53\u5185\u5bb9\u5982\u4e0b&nbsp; \u6b63\u6587 100\u5757\u53d130\u4e2a\u7ea2\u5305 \u3000\u3000 50\u5757\u53d113\u4e2a\u7ea2\u5305 \u3000\u3000 1\u5757\u53d110\u4e2a\u7ea2\u5305 \u3000\u3000 \u53d1\u7ea2\u5305\u9700\u8981\u6ee1\u8db3\u4ee5\u4e0b\u51e0\u4e2a\u6761\u4ef6 1.\u603b\u91d1\u989d\u4e0d\u53d82.\u6bcf\u4e2a\u7ea2\u5305\u90fd\u5fc5\u987b\u6709\u94b13.\u5c3d\u91cf\u7684\u5747\u5300\u70b9,\u4e0d\u7136\u62a2\u7ea2\u5305\u6ca1\u4ec0\u4e48\u610f\u601d\u4e86&nbsp; \u5b9e\u73b0\u601d\u8def1.\u9996\u5148\u8981\u786e\u5b9a\u6700\u5c0f\u5355\u4f4d,\u8fd9\u91cc\u662f\u7cbe\u786e\u5230\u5206,\u6211\u8fd9\u91cc\u4ee5int\u7c7b\u578b\u8fdb\u884c\u8ba1\u7b97,\u5f97\u51fa\u7684\u7ed3\u679c\u4e5f\u5168\u662fint\u7c7b\u578b2.\u6570\u636e\u5747\u5300,\u8fd9\u91cc\u4ee5&nbsp; 1 3.\u4f59\u6570\u5904\u7406,\u5f53\u6570\u636e\u5e73\u5747\u7ed920\u4e2a\u7ea2\u5305,\u80af\u5b9a\u8ddf\u603b\u91d1\u989d\u6709\u6240\u504f\u5dee,\u8fd9\u65f6\u5019\u6211\u4eec\u5c31\u8981\u591a\u9000\u5c11\u8865,\u5982\u679c\u5927\u4e8e\u603b\u91d1\u989d,\u8ba9\u7ea2\u5305\u91d1\u989d\u591a\u7684\u53bb\u51cf\u5c11(\u603b\u91d1\u989d\/\u603b\u4eba\u6570),\u5982\u679c\u8fd8\u6709\u5269\u4f59,\u5c31\u8ba9\u7b2c\u4e8c\u591a\u7684\u53bb\u51cf\u5c11,\u76f4\u5230\u8865\u5b8c\u8fd9\u4e2a\u7a7a\u7f3a\u4e3a\u6b62,\u53cd\u4e4b\u4ea6\u7136.4.\u6253\u4e71\u987a\u5e8f,\u7ec6\u5fc3\u7684\u56ed\u53cb\u53ef\u80fd\u53d1\u73b0,\u7ea2\u5305\u662f\u6709\u987a\u5e8f\u89c4\u5f8b\u7684,\u6211\u4eec\u5fc5\u987b\u7b80\u5355\u7684\u5199\u4e2afunction\u53bb\u6253\u4e71\u5b83.\u3000\u3000&nbsp; demo&nbsp; \/\/\/ &lt;summary&gt; \/\/\/ \u62a2\u7ea2\u5305 \/\/\/ &lt;\/summary&gt; \/\/\/ &lt;param name=&#8221;money&#8221;&gt;&lt;\/param&gt; \/\/\/ &lt;param name=&#8221;num&#8221;&gt;&lt;\/param&gt; \/\/\/ &lt;returns&gt;&lt;\/returns&gt; public List&lt;int&gt; qhb(int money, int num) { int min = 1; int pjs = money \/ num; List&lt;int&gt; list = new List&lt;int&gt;(); Random rnd = new [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-29551","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=29551"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29551\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}