{"id":1089567,"date":"2025-01-08T13:54:40","date_gmt":"2025-01-08T05:54:40","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1089567.html"},"modified":"2025-01-08T13:54:42","modified_gmt":"2025-01-08T05:54:42","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e8%ae%a1%e7%ae%97%e4%b8%80%e4%b8%aa%e5%ad%a3%e5%ba%a6-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1089567.html","title":{"rendered":"\u5982\u4f55\u7528python\u8ba1\u7b97\u4e00\u4e2a\u5b63\u5ea6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24202433\/270490d5-405c-448f-b052-5bc95e13fbaa.webp\" alt=\"\u5982\u4f55\u7528python\u8ba1\u7b97\u4e00\u4e2a\u5b63\u5ea6\" \/><\/p>\n<p><p> <strong>\u56de\u7b54\uff1a\u4f7f\u7528Python\u8ba1\u7b97\u4e00\u4e2a\u5b63\u5ea6\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u65e5\u671f\u65f6\u95f4\u64cd\u4f5c\u5e93\u3001\u5b9a\u4e49\u5b63\u5ea6\u65f6\u95f4\u8303\u56f4\u3001\u6839\u636e\u65e5\u671f\u5224\u65ad\u6240\u5c5e\u5b63\u5ea6\u7b49\u3002<\/strong><\/p>\n<\/p>\n<p><p><strong>\u65e5\u671f\u65f6\u95f4\u64cd\u4f5c\u5e93<\/strong>\uff1a\u901a\u8fc7Python\u7684<code>datetime<\/code>\u5e93\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u7684\u8ba1\u7b97\u3002<br \/><strong>\u5b9a\u4e49\u5b63\u5ea6\u65f6\u95f4\u8303\u56f4<\/strong>\uff1a\u660e\u786e\u6bcf\u4e2a\u5b63\u5ea6\u7684\u8d77\u6b62\u65e5\u671f\uff0c\u4ee5\u4fbf\u8fdb\u884c\u8ba1\u7b97\u548c\u5224\u65ad\u3002<br \/><strong>\u6839\u636e\u65e5\u671f\u5224\u65ad\u6240\u5c5e\u5b63\u5ea6<\/strong>\uff1a\u901a\u8fc7\u6761\u4ef6\u5224\u65ad\uff0c\u5c06\u7ed9\u5b9a\u7684\u65e5\u671f\u5f52\u5c5e\u5230\u5bf9\u5e94\u7684\u5b63\u5ea6\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u65e5\u671f\u65f6\u95f4\u64cd\u4f5c\u5e93<\/h3>\n<\/p>\n<p><p>Python\u7684<code>datetime<\/code>\u5e93\u662f\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u7684\u57fa\u7840\u5e93\uff0c\u63d0\u4f9b\u4e86\u65e5\u671f\u3001\u65f6\u95f4\u3001\u65f6\u95f4\u6233\u7b49\u591a\u79cd\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u65e5\u671f\u65f6\u95f4\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime<\/p>\n<h2><strong>\u83b7\u53d6\u5f53\u524d\u65e5\u671f\u65f6\u95f4<\/strong><\/h2>\n<p>current_datetime = datetime.now()<\/p>\n<h2><strong>\u683c\u5f0f\u5316\u65e5\u671f\u65f6\u95f4<\/strong><\/h2>\n<p>formatted_date = current_datetime.strftime(&#39;%Y-%m-%d %H:%M:%S&#39;)<\/p>\n<h2><strong>\u89e3\u6790\u65e5\u671f\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>date_string = &#39;2023-01-15&#39;<\/p>\n<p>parsed_date = datetime.strptime(date_string, &#39;%Y-%m-%d&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b9a\u4e49\u5b63\u5ea6\u65f6\u95f4\u8303\u56f4<\/h3>\n<\/p>\n<p><p>\u5728\u8fdb\u884c\u5b63\u5ea6\u8ba1\u7b97\u65f6\uff0c\u9996\u5148\u8981\u660e\u786e\u6bcf\u4e2a\u5b63\u5ea6\u7684\u8d77\u6b62\u65e5\u671f\u3002\u901a\u5e38\uff0c\u4e00\u4e2a\u5e74\u5ea6\u88ab\u5206\u4e3a\u56db\u4e2a\u5b63\u5ea6\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u7b2c\u4e00\u5b63\u5ea6\uff08Q1\uff09\uff1a1\u67081\u65e5 &#8211; 3\u670831\u65e5<\/li>\n<li>\u7b2c\u4e8c\u5b63\u5ea6\uff08Q2\uff09\uff1a4\u67081\u65e5 &#8211; 6\u670830\u65e5<\/li>\n<li>\u7b2c\u4e09\u5b63\u5ea6\uff08Q3\uff09\uff1a7\u67081\u65e5 &#8211; 9\u670830\u65e5<\/li>\n<li>\u7b2c\u56db\u5b63\u5ea6\uff08Q4\uff09\uff1a10\u67081\u65e5 &#8211; 12\u670831\u65e5<\/li>\n<\/ul>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5b57\u5178\u6765\u5b58\u50a8\u8fd9\u4e9b\u65f6\u95f4\u8303\u56f4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">quarters = {<\/p>\n<p>    &#39;Q1&#39;: (1, 3),<\/p>\n<p>    &#39;Q2&#39;: (4, 6),<\/p>\n<p>    &#39;Q3&#39;: (7, 9),<\/p>\n<p>    &#39;Q4&#39;: (10, 12)<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u6839\u636e\u65e5\u671f\u5224\u65ad\u6240\u5c5e\u5b63\u5ea6<\/h3>\n<\/p>\n<p><p>\u6839\u636e\u7ed9\u5b9a\u7684\u65e5\u671f\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6761\u4ef6\u5224\u65ad\u6765\u786e\u5b9a\u8be5\u65e5\u671f\u6240\u5c5e\u7684\u5b63\u5ea6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_quarter(date):<\/p>\n<p>    month = date.month<\/p>\n<p>    if 1 &lt;= month &lt;= 3:<\/p>\n<p>        return &#39;Q1&#39;<\/p>\n<p>    elif 4 &lt;= month &lt;= 6:<\/p>\n<p>        return &#39;Q2&#39;<\/p>\n<p>    elif 7 &lt;= month &lt;= 9:<\/p>\n<p>        return &#39;Q3&#39;<\/p>\n<p>    else:<\/p>\n<p>        return &#39;Q4&#39;<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>date = datetime.strptime(&#39;2023-05-15&#39;, &#39;%Y-%m-%d&#39;)<\/p>\n<p>quarter = get_quarter(date)<\/p>\n<p>print(f&#39;The date {date.strftime(&quot;%Y-%m-%d&quot;)} is in {quarter}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u8ba1\u7b97\u5b63\u5ea6\u7684\u8d77\u6b62\u65e5\u671f<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u8be6\u7ec6\u5730\u8ba1\u7b97\u67d0\u4e2a\u65e5\u671f\u6240\u5c5e\u5b63\u5ea6\u7684\u8d77\u6b62\u65e5\u671f\uff0c\u53ef\u4ee5\u6269\u5c55\u4e0a\u9762\u7684\u51fd\u6570\uff0c\u8fd4\u56de\u5b63\u5ea6\u7684\u8d77\u6b62\u65e5\u671f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_quarter_dates(date):<\/p>\n<p>    month = date.month<\/p>\n<p>    year = date.year<\/p>\n<p>    if 1 &lt;= month &lt;= 3:<\/p>\n<p>        start_date = datetime(year, 1, 1)<\/p>\n<p>        end_date = datetime(year, 3, 31)<\/p>\n<p>        quarter = &#39;Q1&#39;<\/p>\n<p>    elif 4 &lt;= month &lt;= 6:<\/p>\n<p>        start_date = datetime(year, 4, 1)<\/p>\n<p>        end_date = datetime(year, 6, 30)<\/p>\n<p>        quarter = &#39;Q2&#39;<\/p>\n<p>    elif 7 &lt;= month &lt;= 9:<\/p>\n<p>        start_date = datetime(year, 7, 1)<\/p>\n<p>        end_date = datetime(year, 9, 30)<\/p>\n<p>        quarter = &#39;Q3&#39;<\/p>\n<p>    else:<\/p>\n<p>        start_date = datetime(year, 10, 1)<\/p>\n<p>        end_date = datetime(year, 12, 31)<\/p>\n<p>        quarter = &#39;Q4&#39;<\/p>\n<p>    return quarter, start_date, end_date<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>date = datetime.strptime(&#39;2023-08-15&#39;, &#39;%Y-%m-%d&#39;)<\/p>\n<p>quarter, start_date, end_date = get_quarter_dates(date)<\/p>\n<p>print(f&#39;The date {date.strftime(&quot;%Y-%m-%d&quot;)} is in {quarter}, which starts on {start_date.strftime(&quot;%Y-%m-%d&quot;)} and ends on {end_date.strftime(&quot;%Y-%m-%d&quot;)}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5b63\u5ea6\u8ba1\u7b97\u7684\u5b9e\u9645\u5e94\u7528<\/h3>\n<\/p>\n<p><p>\u8ba1\u7b97\u5b63\u5ea6\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u975e\u5e38\u6709\u7528\uff0c\u4f8b\u5982\u8d22\u52a1\u62a5\u8868\u3001\u5b63\u5ea6\u7edf\u8ba1\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5b9e\u9645\u5e94\u7528\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h4>1. \u8ba1\u7b97\u67d0\u4e2a\u5b63\u5ea6\u7684\u603b\u5929\u6570<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def get_days_in_quarter(quarter, year):<\/p>\n<p>    _, start_date, end_date = get_quarter_dates(datetime(year, quarter*3-2, 1))<\/p>\n<p>    return (end_date - start_date).days + 1<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>quarter_days = get_days_in_quarter(2, 2023)<\/p>\n<p>print(f&#39;The total number of days in Q2 2023 is {quarter_days}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6309\u5b63\u5ea6\u5206\u7ec4\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u4e2d\uff0c\u7ecf\u5e38\u9700\u8981\u6309\u5b63\u5ea6\u5206\u7ec4\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff0c\u6309\u5b63\u5ea6\u8ba1\u7b97\u9500\u552e\u6570\u636e\u7684\u603b\u548c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u6a21\u62df\u9500\u552e\u6570\u636e<\/strong><\/h2>\n<p>data = {<\/p>\n<p>    &#39;date&#39;: [&#39;2023-01-15&#39;, &#39;2023-02-20&#39;, &#39;2023-03-10&#39;, &#39;2023-04-25&#39;, &#39;2023-05-30&#39;, &#39;2023-06-15&#39;, <\/p>\n<p>             &#39;2023-07-20&#39;, &#39;2023-08-22&#39;, &#39;2023-09-25&#39;, &#39;2023-10-18&#39;, &#39;2023-11-20&#39;, &#39;2023-12-30&#39;],<\/p>\n<p>    &#39;sales&#39;: [100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650]<\/p>\n<p>}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p>df[&#39;date&#39;] = pd.to_datetime(df[&#39;date&#39;])<\/p>\n<p>df[&#39;quarter&#39;] = df[&#39;date&#39;].apply(lambda x: get_quarter(x))<\/p>\n<h2><strong>\u6309\u5b63\u5ea6\u5206\u7ec4<\/strong><\/h2>\n<p>quarterly_sales = df.groupby(&#39;quarter&#39;)[&#39;sales&#39;].sum()<\/p>\n<p>print(quarterly_sales)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528Python\u7684<code>datetime<\/code>\u5e93\u548c\u81ea\u5b9a\u4e49\u51fd\u6570\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8ba1\u7b97\u5b63\u5ea6\u548c\u5904\u7406\u4e0e\u5b63\u5ea6\u76f8\u5173\u7684\u5404\u79cd\u64cd\u4f5c\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5b9a\u4e49\u5b63\u5ea6\u65f6\u95f4\u8303\u56f4\u3001\u5224\u65ad\u6240\u5c5e\u5b63\u5ea6\u3001\u8ba1\u7b97\u8d77\u6b62\u65e5\u671f\u53ca\u5b9e\u9645\u5e94\u7528\u3002\u638c\u63e1\u8fd9\u4e9b\u6280\u5de7\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u6570\u636e\u5206\u6790\u3001\u8d22\u52a1\u62a5\u8868\u7b49\u9886\u57df\u66f4\u9ad8\u6548\u5730\u5904\u7406\u5b63\u5ea6\u6570\u636e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u786e\u5b9a\u67d0\u4e2a\u65e5\u671f\u5c5e\u4e8e\u54ea\u4e2a\u5b63\u5ea6\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5185\u7f6e<code>datetime<\/code>\u6a21\u5757\u6765\u5904\u7406\u65e5\u671f\u3002\u9996\u5148\uff0c\u83b7\u53d6\u5e74\u4efd\u548c\u6708\u4efd\uff0c\u7136\u540e\u6839\u636e\u6708\u4efd\u5224\u65ad\u5c5e\u4e8e\u54ea\u4e2a\u5b63\u5ea6\u3002\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">from datetime import datetime\n\ndef get_quarter(date):\n    month = date.month\n    if month in [1, 2, 3]:\n        return 1\n    elif month in [4, 5, 6]:\n        return 2\n    elif month in [7, 8, 9]:\n        return 3\n    else:\n        return 4\n\ndate = datetime(2023, 5, 15)\nprint(f&#39;The quarter for {date} is Q{get_quarter(date)}.&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u51fd\u6570\u5c06\u8fd4\u56de\u8be5\u65e5\u671f\u5bf9\u5e94\u7684\u5b63\u5ea6\u3002<\/p>\n<p><strong>\u5982\u4f55\u8ba1\u7b97\u4e00\u4e2a\u5b63\u5ea6\u7684\u5f00\u59cb\u548c\u7ed3\u675f\u65e5\u671f\uff1f<\/strong><br \/>\u8981\u8ba1\u7b97\u67d0\u4e2a\u5b63\u5ea6\u7684\u5f00\u59cb\u548c\u7ed3\u675f\u65e5\u671f\uff0c\u53ef\u4ee5\u4f7f\u7528\u5e74\u4efd\u548c\u5b63\u5ea6\u4fe1\u606f\u6765\u6784\u9020\u65e5\u671f\u3002\u6bd4\u5982\uff0c\u7b2c\u4e00\u5b63\u5ea6\u7684\u5f00\u59cb\u548c\u7ed3\u675f\u65e5\u671f\u5206\u522b\u662f1\u67081\u65e5\u548c3\u670831\u65e5\u3002\u4ee3\u7801\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">def get_quarter_dates(year, quarter):\n    if quarter == 1:\n        return f&#39;{year}-01-01&#39;, f&#39;{year}-03-31&#39;\n    elif quarter == 2:\n        return f&#39;{year}-04-01&#39;, f&#39;{year}-06-30&#39;\n    elif quarter == 3:\n        return f&#39;{year}-07-01&#39;, f&#39;{year}-09-30&#39;\n    else:\n        return f&#39;{year}-10-01&#39;, f&#39;{year}-12-31&#39;\n\nprint(get_quarter_dates(2023, 2))  # \u8f93\u51fa\uff1a(&#39;2023-04-01&#39;, &#39;2023-06-30&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u51fd\u6570\u5c06\u8fd4\u56de\u6307\u5b9a\u5e74\u4efd\u548c\u5b63\u5ea6\u7684\u5f00\u59cb\u548c\u7ed3\u675f\u65e5\u671f\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u7edf\u8ba1\u67d0\u4e2a\u5b63\u5ea6\u7684\u9500\u552e\u6570\u636e\uff1f<\/strong><br \/>\u53ef\u4ee5\u5229\u7528Pandas\u5e93\u6765\u5904\u7406\u548c\u5206\u6790\u6570\u636e\u3002\u9996\u5148\uff0c\u4f7f\u7528Pandas\u8bfb\u53d6\u9500\u552e\u6570\u636e\uff0c\u7136\u540e\u7b5b\u9009\u51fa\u7279\u5b9a\u5b63\u5ea6\u7684\u6570\u636e\u8fdb\u884c\u7edf\u8ba1\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import pandas as pd\n\n# \u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5305\u542b\u9500\u552e\u6570\u636e\u7684DataFrame\ndata = {&#39;date&#39;: [&#39;2023-01-15&#39;, &#39;2023-04-10&#39;, &#39;2023-07-20&#39;, &#39;2023-10-05&#39;],\n        &#39;sales&#39;: [200, 300, 250, 400]}\ndf = pd.DataFrame(data)\ndf[&#39;date&#39;] = pd.to_datetime(df[&#39;date&#39;])\n\n# \u8fc7\u6ee4\u51fa\u7b2c\u4e00\u5b63\u5ea6\u7684\u6570\u636e\nq1_sales = df[(df[&#39;date&#39;].dt.month &gt;= 1) &amp; (df[&#39;date&#39;].dt.month &lt;= 3)]\ntotal_sales_q1 = q1_sales[&#39;sales&#39;].sum()\n\nprint(f&#39;Total sales in Q1 2023: {total_sales_q1}&#39;)\n<\/code><\/pre>\n<p>\u8be5\u4ee3\u7801\u5c06\u8ba1\u7b97\u5e76\u8f93\u51fa\u7b2c\u4e00\u5b63\u5ea6\u7684\u603b\u9500\u552e\u989d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u56de\u7b54\uff1a\u4f7f\u7528Python\u8ba1\u7b97\u4e00\u4e2a\u5b63\u5ea6\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u65e5\u671f\u65f6\u95f4\u64cd\u4f5c\u5e93\u3001\u5b9a\u4e49\u5b63\u5ea6\u65f6\u95f4\u8303\u56f4\u3001\u6839\u636e\u65e5\u671f\u5224\u65ad\u6240\u5c5e\u5b63\u5ea6\u7b49\u3002 \u65e5\u671f [&hellip;]","protected":false},"author":3,"featured_media":1089581,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1089567"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1089567"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1089567\/revisions"}],"predecessor-version":[{"id":1089585,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1089567\/revisions\/1089585"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1089581"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1089567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1089567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1089567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}