{"id":1144592,"date":"2025-01-08T23:01:07","date_gmt":"2025-01-08T15:01:07","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1144592.html"},"modified":"2025-01-08T23:01:10","modified_gmt":"2025-01-08T15:01:10","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%af%b9%e6%95%b0%e5%80%bc%e4%bf%9d%e7%95%99%e5%9b%9b%e4%bd%8d%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1144592.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5bf9\u6570\u503c\u4fdd\u7559\u56db\u4f4d\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181618\/c8ca6492-29db-4ffa-a1cc-d1deb0307369.webp\" alt=\"python\u4e2d\u5982\u4f55\u5bf9\u6570\u503c\u4fdd\u7559\u56db\u4f4d\u6570\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u5bf9\u6570\u503c\u4fdd\u7559\u56db\u4f4d\u6570\u4e3b\u8981\u53ef\u4ee5\u901a\u8fc7<\/strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>round()<\/code>\u3001<strong>\u4ee5\u53ca<\/strong>\u5e93\u51fd\u6570<code>decimal<\/code><strong>\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002<\/strong> <\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/strong> \u662f\u6700\u5e38\u7528\u4e14\u7075\u6d3b\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u76f4\u63a5\u6307\u5b9a\u5c0f\u6570\u70b9\u540e\u7684\u4f4d\u6570\uff0c\u5e76\u4e14\u53ef\u4ee5\u63a7\u5236\u8f93\u51fa\u7684\u683c\u5f0f\uff0c\u8fd9\u5bf9\u4e8e\u6570\u636e\u5c55\u793a\u548c\u5bf9\u9f50\u975e\u5e38\u6709\u7528\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u65b9\u6cd5\u53ca\u5176\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<h2><strong>\u4e00\u3001\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p><h2>1. \u4f7f\u7528f-string<\/h2>\n<\/p>\n<p><p>Python 3.6\u5f15\u5165\u4e86f-string\uff0c\u662f\u4e00\u79cd\u7b80\u6d01\u4e14\u76f4\u89c2\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u5f0f\u3002\u5b83\u5141\u8bb8\u5728\u5b57\u7b26\u4e32\u4e2d\u76f4\u63a5\u5d4c\u5165\u53d8\u91cf\uff0c\u5e76\u4e14\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u683c\u5f0f\u6765\u63a7\u5236\u6570\u503c\u7684\u663e\u793a\u7cbe\u5ea6\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 123.456789<\/p>\n<p>formatted_num = f&quot;{num:.4f}&quot;<\/p>\n<p>print(formatted_num)  # \u8f93\u51fa\uff1a123.4568<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>{num:.4f}<\/code>\u8868\u793a\u5c06<code>num<\/code>\u683c\u5f0f\u5316\u4e3a\u5c0f\u6570\u70b9\u540e\u4fdd\u75594\u4f4d\u7684\u5c0f\u6570\u3002<\/p>\n<\/p>\n<p><h2>2. \u4f7f\u7528<code>format()<\/code>\u65b9\u6cd5<\/h2>\n<\/p>\n<p><p><code>format()<\/code>\u65b9\u6cd5\u662fPython\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e7f\u6cdb\u5e94\u7528\u4e8ePython 2\u548cPython 3\u3002\u5b83\u7684\u4f7f\u7528\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 123.456789<\/p>\n<p>formatted_num = &quot;{:.4f}&quot;.format(num)<\/p>\n<p>print(formatted_num)  # \u8f93\u51fa\uff1a123.4568<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684<code>{:.4f}<\/code>\u4e0ef-string\u7684\u4f7f\u7528\u65b9\u6cd5\u7c7b\u4f3c\uff0c\u540c\u6837\u662f\u5c06\u6570\u503c\u683c\u5f0f\u5316\u4e3a\u5c0f\u6570\u70b9\u540e\u4fdd\u75594\u4f4d\u7684\u5c0f\u6570\u3002<\/p>\n<\/p>\n<p><h2>3. \u4f7f\u7528\u767e\u5206\u53f7<code>%<\/code>\u683c\u5f0f\u5316<\/h2>\n<\/p>\n<p><p>\u8fd9\u662fPython\u8f83\u65e9\u671f\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u9002\u7528\u4e8ePython 2\u548cPython 3\u3002\u867d\u7136\u8fd9\u79cd\u65b9\u6cd5\u5728\u73b0\u4ee3Python\u4e2d\u4e0d\u592a\u5e38\u7528\uff0c\u4f46\u4e86\u89e3\u5b83\u4ecd\u7136\u5f88\u6709\u5fc5\u8981\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 123.456789<\/p>\n<p>formatted_num = &quot;%.4f&quot; % num<\/p>\n<p>print(formatted_num)  # \u8f93\u51fa\uff1a123.4568<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684<code>%.4f<\/code>\u8868\u793a\u5c06\u6570\u503c\u683c\u5f0f\u5316\u4e3a\u5c0f\u6570\u70b9\u540e\u4fdd\u75594\u4f4d\u7684\u5c0f\u6570\u3002<\/p>\n<\/p>\n<h2><strong>\u4e8c\u3001\u4f7f\u7528<code>round()<\/code>\u51fd\u6570<\/strong><\/h2>\n<p><p><code>round()<\/code>\u662fPython\u5185\u7f6e\u7684\u51fd\u6570\uff0c\u7528\u4e8e\u5bf9\u6d6e\u70b9\u6570\u8fdb\u884c\u56db\u820d\u4e94\u5165\uff0c\u5e76\u53ef\u4ee5\u6307\u5b9a\u4fdd\u7559\u7684\u5c0f\u6570\u4f4d\u6570\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<code>round()<\/code>\u8fd4\u56de\u7684\u7ed3\u679c\u4ecd\u7136\u662f\u6d6e\u70b9\u6570\uff0c\u4e0d\u4f1a\u81ea\u52a8\u8f6c\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 123.456789<\/p>\n<p>rounded_num = round(num, 4)<\/p>\n<p>print(rounded_num)  # \u8f93\u51fa\uff1a123.4568<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>round(num, 4)<\/code>\u8868\u793a\u5c06<code>num<\/code>\u56db\u820d\u4e94\u5165\u5230\u5c0f\u6570\u70b9\u540e4\u4f4d\u3002<\/p>\n<\/p>\n<h2><strong>\u4e09\u3001\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757<\/strong><\/h2>\n<p><p><code>decimal<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7cbe\u5ea6\u7684\u6d6e\u70b9\u8fd0\u7b97\uff0c\u9002\u7528\u4e8e\u5bf9\u7cbe\u5ea6\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\u3002\u901a\u8fc7<code>decimal<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u7cbe\u786e\u63a7\u5236\u6570\u503c\u7684\u8fd0\u7b97\u548c\u683c\u5f0f\u5316\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from decimal import Decimal, ROUND_HALF_UP<\/p>\n<p>num = Decimal(&quot;123.456789&quot;)<\/p>\n<p>formatted_num = num.quantize(Decimal(&quot;0.0001&quot;), rounding=ROUND_HALF_UP)<\/p>\n<p>print(formatted_num)  # \u8f93\u51fa\uff1a123.4568<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>Decimal(&quot;123.456789&quot;)<\/code>\u5c06\u6570\u503c\u8f6c\u6362\u4e3a<code>Decimal<\/code>\u5bf9\u8c61\uff0c<code>num.quantize(Decimal(&quot;0.0001&quot;), rounding=ROUND_HALF_UP)<\/code>\u5c06\u6570\u503c\u683c\u5f0f\u5316\u4e3a\u5c0f\u6570\u70b9\u540e\u4fdd\u75594\u4f4d\u7684\u5c0f\u6570\uff0c\u5e76\u91c7\u7528\u56db\u820d\u4e94\u5165\u7684\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<h2><strong>\u56db\u3001\u5e94\u7528\u573a\u666f\u8be6\u89e3<\/strong><\/h2>\n<p><h2>1. \u6570\u636e\u5c55\u793a<\/h2>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5c55\u793a\u4e2d\uff0c\u5bf9\u6570\u503c\u8fdb\u884c\u683c\u5f0f\u5316\u53ef\u4ee5\u63d0\u5347\u6570\u636e\u7684\u53ef\u8bfb\u6027\u3002\u4f8b\u5982\uff0c\u5728\u91d1\u878d\u62a5\u8868\u4e2d\uff0c\u4fdd\u7559\u56db\u4f4d\u5c0f\u6570\u53ef\u4ee5\u51c6\u786e\u5c55\u793a\u8d27\u5e01\u548c\u5229\u7387\u7b49\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">amount = 1234.56789<\/p>\n<p>formatted_amount = f&quot;${amount:.4f}&quot;<\/p>\n<p>print(formatted_amount)  # \u8f93\u51fa\uff1a$1234.5679<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2. \u79d1\u5b66\u8ba1\u7b97<\/h2>\n<\/p>\n<p><p>\u5728\u79d1\u5b66\u8ba1\u7b97\u4e2d\uff0c\u5bf9\u6570\u503c\u7684\u7cbe\u5ea6\u8981\u6c42\u8f83\u9ad8\uff0c\u901a\u8fc7\u683c\u5f0f\u5316\u53ef\u4ee5\u786e\u4fdd\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u7269\u7406\u5e38\u6570\u65f6\uff0c\u9700\u8981\u4fdd\u7559\u4e00\u5b9a\u7684\u7cbe\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>pi = math.pi<\/p>\n<p>formatted_pi = f&quot;{pi:.4f}&quot;<\/p>\n<p>print(formatted_pi)  # \u8f93\u51fa\uff1a3.1416<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>3. \u6570\u636e\u5b58\u50a8<\/h2>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5b58\u50a8\u4e2d\uff0c\u4fdd\u7559\u4e00\u5b9a\u7684\u5c0f\u6570\u4f4d\u6570\u53ef\u4ee5\u8282\u7701\u5b58\u50a8\u7a7a\u95f4\uff0c\u540c\u65f6\u4fdd\u8bc1\u6570\u636e\u7684\u7cbe\u5ea6\u3002\u4f8b\u5982\uff0c\u5728\u6570\u636e\u5e93\u4e2d\u5b58\u50a8\u6d6e\u70b9\u6570\u65f6\uff0c\u53ef\u4ee5\u9884\u5148\u683c\u5f0f\u5316\u6570\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sqlite3<\/p>\n<p>num = 123.456789<\/p>\n<p>formatted_num = f&quot;{num:.4f}&quot;<\/p>\n<h2><strong>\u5b58\u50a8\u5230\u6570\u636e\u5e93<\/strong><\/h2>\n<p>conn = sqlite3.connect(&#39;example.db&#39;)<\/p>\n<p>c = conn.cursor()<\/p>\n<p>c.execute(&#39;CREATE TABLE IF NOT EXISTS numbers (num REAL)&#39;)<\/p>\n<p>c.execute(&#39;INSERT INTO numbers (num) VALUES (?)&#39;, (formatted_num,))<\/p>\n<p>conn.commit()<\/p>\n<p>conn.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>4. \u6570\u636e\u5206\u6790<\/h2>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u4e2d\uff0c\u4fdd\u7559\u4e00\u5b9a\u7684\u5c0f\u6570\u4f4d\u6570\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u7684\u7cbe\u5ea6\u548c\u5206\u6790\u7ed3\u679c\u7684\u53ef\u4fe1\u5ea6\u3002\u4f8b\u5982\uff0c\u5728\u7edf\u8ba1\u5206\u6790\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u683c\u5f0f\u5316\u6570\u503c\u6765\u5c55\u793a\u5e73\u5747\u503c\u3001\u6807\u51c6\u5dee\u7b49\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>data = [1.23456789, 2.3456789, 3.456789]<\/p>\n<p>mean = np.mean(data)<\/p>\n<p>formatted_mean = f&quot;{mean:.4f}&quot;<\/p>\n<p>print(formatted_mean)  # \u8f93\u51fa\uff1a2.3457<\/p>\n<p><\/code><\/pre>\n<\/p>\n<h2><strong>\u4e94\u3001\u603b\u7ed3<\/strong><\/h2>\n<p><p>\u5728Python\u4e2d\uff0c\u5bf9\u6570\u503c\u4fdd\u7559\u56db\u4f4d\u6570\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u4e3b\u8981\u5305\u62ec<strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>round()<\/code>\u3001\u4ee5\u53ca\u5e93\u51fd\u6570<code>decimal<\/code>\u7b49\u3002<\/strong>\u5176\u4e2d\uff0c<strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/strong> \u662f\u6700\u5e38\u7528\u4e14\u7075\u6d3b\u7684\u65b9\u6cd5\uff0c\u7279\u522b\u662ff-string\u548c<code>format()<\/code>\u65b9\u6cd5\u3002\u6b64\u5916\uff0c<code>round()<\/code>\u51fd\u6570\u548c<code>decimal<\/code>\u6a21\u5757\u4e5f\u63d0\u4f9b\u4e86\u4e0d\u540c\u573a\u666f\u4e0b\u7684\u89e3\u51b3\u65b9\u6848\u3002\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6570\u636e\u7684\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u6765\u4fdd\u7559\u6570\u503c\u7684\u56db\u4f4d\u5c0f\u6570\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08f-string\uff09\u6765\u8f7b\u677e\u5730\u63a7\u5236\u5c0f\u6570\u4f4d\u6570\u3002\u901a\u8fc7\u5728\u82b1\u62ec\u53f7\u5185\u6307\u5b9a\u683c\u5f0f\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u6570\u503c\u7684\u7cbe\u786e\u63a7\u5236\u3002\u4f8b\u5982\uff0c<code>value = 3.14159265<\/code>\uff0c\u4f7f\u7528<code>formatted_value = f&quot;{value:.4f}&quot;<\/code>\u53ef\u4ee5\u5f97\u5230<code>3.1416<\/code>\uff0c\u8fd9\u6837\u5c31\u80fd\u4fdd\u7559\u56db\u4f4d\u5c0f\u6570\u3002<\/p>\n<p><strong>Python\u4e2d\u6709\u6ca1\u6709\u5185\u7f6e\u51fd\u6570\u7528\u4e8e\u4fdd\u7559\u56db\u4f4d\u5c0f\u6570\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u63d0\u4f9b\u4e86<code>round()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u5bf9\u6570\u503c\u8fdb\u884c\u56db\u820d\u4e94\u5165\u3002\u4f7f\u7528\u65b9\u6cd5\u4e3a<code>rounded_value = round(value, 4)<\/code>\uff0c\u8fd9\u5c06\u8fd4\u56de\u4e00\u4e2a\u4fdd\u7559\u56db\u4f4d\u5c0f\u6570\u7684\u6570\u503c\u3002\u4f8b\u5982\uff0c<code>round(2.718281828, 4)<\/code>\u7684\u7ed3\u679c\u4e3a<code>2.7183<\/code>\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Pandas\u4e2d\u5bf9\u6570\u636e\u6846\u7684\u6570\u503c\u5217\u4fdd\u7559\u56db\u4f4d\u5c0f\u6570\uff1f<\/strong><br \/>\u5728Pandas\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>DataFrame<\/code>\u7684<code>round()<\/code>\u65b9\u6cd5\u6765\u5bf9\u7279\u5b9a\u5217\u6216\u6574\u4e2a\u6570\u636e\u6846\u8fdb\u884c\u56db\u4f4d\u5c0f\u6570\u7684\u4fdd\u7559\u3002\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<code>df[&#39;column_name&#39;] = df[&#39;column_name&#39;].round(4)<\/code>\uff0c\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u6570\u636e\u6846\u4e2d\u6307\u5b9a\u5217\u7684\u6240\u6709\u6570\u503c\u90fd\u4fdd\u7559\u56db\u4f4d\u5c0f\u6570\u3002\u5982\u679c\u9700\u8981\u5bf9\u6574\u4e2a\u6570\u636e\u6846\u56db\u820d\u4e94\u5165\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528<code>df.round(4)<\/code>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5bf9\u6570\u503c\u4fdd\u7559\u56db\u4f4d\u6570\u4e3b\u8981\u53ef\u4ee5\u901a\u8fc7\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570round()\u3001\u4ee5\u53ca\u5e93\u51fd\u6570decima [&hellip;]","protected":false},"author":3,"featured_media":1144601,"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\/1144592"}],"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=1144592"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1144592\/revisions"}],"predecessor-version":[{"id":1144603,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1144592\/revisions\/1144603"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1144601"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1144592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1144592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1144592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}