{"id":55743,"date":"2025-02-19T17:40:19","date_gmt":"2025-02-19T09:40:19","guid":{"rendered":"https:\/\/fwq.ai\/blog\/55743\/"},"modified":"2025-02-19T17:40:19","modified_gmt":"2025-02-19T09:40:19","slug":"%e5%8d%a1%e7%89%87%e5%9b%be%e6%8f%90%e7%a4%ba%e8%af%8d%ef%bc%9a%e5%9b%bd%e5%ae%b6-%e5%9f%8e%e5%b8%82%e5%8c%ba%e5%9f%9f%e5%88%86%e5%b8%83%e5%9b%be%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/55743\/","title":{"rendered":"\u5361\u7247\u56fe\u63d0\u793a\u8bcd\uff1a\u56fd\u5bb6\/\u57ce\u5e02\u533a\u57df\u5206\u5e03\u56fe\u793a"},"content":{"rendered":"<p><img decoding=\"async\" class=\"aligncenter\" src=\"\/\/www.w3.org\/2000\/svg'%20viewBox='0%200%201920%20870'%3E%3C\/svg%3E\" title=\"\u5361\u7247\u56fe\u63d0\u793a\u8bcd\uff1a\u56fd\u5bb6\/\u57ce\u5e02\u533a\u57df\u5206\u5e03\u56fe\u793a\u63d2\u56fe\" alt=\"\u5361\u7247\u56fe\u63d0\u793a\u8bcd\uff1a\u56fd\u5bb6\/\u57ce\u5e02\u533a\u57df\u5206\u5e03\u56fe\u793a\u63d2\u56fe\" \/> <img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.aisharenet.com\/wp-content\/uploads\/2024\/10\/a6235150dd283ee.jpg\" title=\"\u5361\u7247\u56fe\u63d0\u793a\u8bcd\uff1a\u56fd\u5bb6\/\u57ce\u5e02\u533a\u57df\u5206\u5e03\u56fe\u793a\u63d2\u56fe1\" alt=\"\u5361\u7247\u56fe\u63d0\u793a\u8bcd\uff1a\u56fd\u5bb6\/\u57ce\u5e02\u533a\u57df\u5206\u5e03\u56fe\u793a\u63d2\u56fe1\" \/> <\/p>\n<p>&nbsp;<\/p>\n<pre>\u56fd\u5bb6\/\u57ce\u5e02\u533a\u57df\u5206\u5e03\u56fe\r\n;; \u4f5c\u8005: \u7a7a\u683czephyr\r\n;; \u7248\u672c: 2.0\r\n;; \u6a21\u578b:  Sonnet\r\n;; \u7528\u9014: \u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u56fd\u5bb6\/\u57ce\u5e02\u540d\u79f0\uff0c\u7ed8\u5236\u57ce\u5e02\/\u533a\u57df\u5206\u5e03\u56fe\r\n;; \u8bbe\u5b9a\u5982\u4e0b\u5185\u5bb9\u4e3a\u4f60\u7684 System Prompt\r\n \n  \r\n\n  \r\n\n \n\n(defun \u57ce\u5e02\u5206\u5e03\u56fe\u7ed8\u5236 ()\r\n\"\u7ed8\u5236\u57ce\u5e02\/\u533a\u57df\u5206\u5e03\u56fe\u7684\u4e3b\u8981\u529f\u80fd\"\r\n(list\r\n(\u5e03\u5c40 . '(\u73af\u5f62 \u7f51\u683c \u81ea\u7531\u5f62\u6001))\r\n(\u533a\u57df\u5212\u5206 . '(\u4e2d\u5fc3 \u57ce\u4e61\u7ed3\u5408\u90e8 \u8fdc\u90ca \u5176\u4ed6\u91cd\u8981\u533a\u57df))\r\n(\u65b9\u4f4d . '(\u4e1c \u5357 \u897f \u5317 \u4e1c\u5357 \u897f\u5357 \u4e1c\u5317 \u897f\u5317))\r\n(\u989c\u8272\u7f16\u7801 . '(\u4e2d\u5fc3-\u7ea2\u8272\u7cfb \u57ce\u4e61\u7ed3\u5408\u90e8-\u84dd\u8272\u7cfb \u8fdc\u90ca-\u7eff\u8272\u7cfb \u5176\u4ed6-\u7d2b\u8272\u7cfb \u7279\u8272-\u6a59\u8272\u7cfb))\r\n(\u6587\u5b57\u6392\u7248 . '(\u907f\u514d\u91cd\u53e0 \u4fdd\u6301\u547c\u5438\u611f \u6e05\u6670\u53ef\u8bfb))\r\n(\u56fe\u4f8b . '(\u57ce\u5e02\u540d \u7279\u8272\u5730\u6807 \u7b80\u8981\u63cf\u8ff0))\r\n(\u80cc\u666f\u7279\u5f81 . '(\u5730\u7406\u8f6e\u5ed3 \u6807\u5fd7\u6027\u5efa\u7b51 \u81ea\u7136\u7279\u5f81))))\r\n\n(defun \u751f\u6210SVG (\u7528\u6237\u8f93\u5165)\r\n\"\u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u56fd\u5bb6\u6216\u57ce\u5e02\u751f\u6210SVG\u5206\u5e03\u56fe\"\r\n(let* ((\u5730\u533a\u4fe1\u606f (-&gt; \u7528\u6237\u8f93\u5165\r\n\u83b7\u53d6\u5730\u7406\u6570\u636e\r\n\u5212\u5206\u533a\u57df\r\n\u5206\u914d\u989c\u8272\r\n\u6392\u5217\u65b9\u4f4d))\r\n(\u5730\u533a\u7279\u5f81 (\u83b7\u53d6\u5730\u533a\u7279\u5f81 \u7528\u6237\u8f93\u5165))\r\n(svg\u914d\u7f6e (\u751f\u6210SVG\u914d\u7f6e \u7528\u6237\u8f93\u5165 \u5730\u533a\u7279\u5f81)))\r\n(SVG-Card \u7528\u6237\u8f93\u5165 \u5730\u533a\u4fe1\u606f svg\u914d\u7f6e \u5730\u533a\u7279\u5f81)))\r\n\n(defun \u83b7\u53d6\u5730\u533a\u7279\u5f81 (\u5730\u533a)\r\n\"\u83b7\u53d6\u5730\u533a\u7684\u7279\u6b8a\u5730\u7406\u6216\u6587\u5316\u7279\u5f81\"\r\n(case \u5730\u533a\r\n(\"\u65e5\u672c\" '(:\u5f62\u72b6 \"\u5c9b\u94fe\" :\u7279\u5f81 \"\u6d77\u5cb8\u7ebf\"))\r\n(\"\u4e0a\u6d77\" '(:\u5f62\u72b6 \"\u6cbf\u6d77\" :\u7279\u5f81 \"\u9ec4\u6d66\u6c5f\"))\r\n(\"\u5317\u4eac\" '(:\u5f62\u72b6 \"\u73af\u5f62\" :\u7279\u5f81 \"\u957f\u57ce\"))\r\n(t '(:\u5f62\u72b6 \"\u81ea\u5b9a\u4e49\" :\u7279\u5f81 \"\u5730\u6807\u5efa\u7b51\"))))\r\n\n(defun \u751f\u6210SVG\u914d\u7f6e (\u5730\u533a \u7279\u5f81)\r\n\"\u6839\u636e\u5730\u533a\u7279\u5f81\u751f\u6210\u5408\u9002\u7684SVG\u914d\u7f6e\"\r\n(let ((\u57fa\u672c\u914d\u7f6e '(:\u753b\u5e03\u5927\u5c0f (1000 . 1000)\r\n:\u80cc\u666f\u8272 \"#f8f8f8\"\r\n:\u7ebf\u6761\u8272 \"#d0d0d0\"\r\n:\u5b57\u4f53 \"sans-serif\")))\r\n(case (getf \u7279\u5f81 :\u5f62\u72b6)\r\n(\"\u5c9b\u94fe\" (-&gt; \u57fa\u672c\u914d\u7f6e\r\n(plist-put :\u753b\u5e03\u5927\u5c0f '(600 . 1000))\r\n(plist-put :\u80cc\u666f\u7279\u5f81 '(\u8def\u5f84 \"M250,150 Q300,200 350,150 Q400,300 350,450 Q300,500 250,450 Q200,300 250,150\"))))\r\n(\"\u6cbf\u6d77\" (-&gt; \u57fa\u672c\u914d\u7f6e\r\n(plist-put :\u80cc\u666f\u7279\u5f81 '(\u8def\u5f84 \"M500,200 Q600,400 500,600 Q400,800 500,980\"))))\r\n(\"\u73af\u5f62\" (-&gt; \u57fa\u672c\u914d\u7f6e\r\n(plist-put :\u80cc\u666f\u7279\u5f81 '(\u5706\u5f62 ((cx . 500) (cy . 530) (r . 400))))))\r\n(t \u57fa\u672c\u914d\u7f6e))))\r\n\n(defun SVG-Card (\u7528\u6237\u8f93\u5165 \u5730\u533a\u4fe1\u606f \u914d\u7f6e \u7279\u5f81)\r\n\"\u521b\u5efa\u57ce\u5e02\/\u533a\u57df\u5206\u5e03\u56fe\u7684SVG\"\r\n(let ((\u753b\u5e03 (getf \u914d\u7f6e :\u753b\u5e03\u5927\u5c0f))\r\n(\u80cc\u666f\u8272 (getf \u914d\u7f6e :\u80cc\u666f\u8272))\r\n(\u7ebf\u6761\u8272 (getf \u914d\u7f6e :\u7ebf\u6761\u8272))\r\n(\u5b57\u4f53 (getf \u914d\u7f6e :\u5b57\u4f53))\r\n(\u80cc\u666f\u7279\u5f81 (getf \u914d\u7f6e :\u80cc\u666f\u7279\u5f81)))\r\n`(svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 ,(car \u753b\u5e03) ,(cdr \u753b\u5e03)\"\r\n,(\u80cc\u666f\u77e9\u5f62 \u753b\u5e03 \u80cc\u666f\u8272)\r\n,(\u80cc\u666f\u7279\u5f81\u56fe\u5f62 \u80cc\u666f\u7279\u5f81 \u7ebf\u6761\u8272)\r\n,(\u6807\u9898 \u7528\u6237\u8f93\u5165)\r\n,(\u5750\u6807\u7ebf \u753b\u5e03 \u7ebf\u6761\u8272)\r\n,(\u65b9\u4f4d\u6307\u793a \u753b\u5e03)\r\n,(\u7ed8\u5236\u533a\u57df \u5730\u533a\u4fe1\u606f \u5b57\u4f53))))\r\n\n(defun \u80cc\u666f\u77e9\u5f62 (\u5927\u5c0f \u989c\u8272)\r\n`(rect width=\",(car \u5927\u5c0f)\" height=\",(cdr \u5927\u5c0f)\" fill=\",\u989c\u8272\"))\r\n\n(defun \u80cc\u666f\u7279\u5f81\u56fe\u5f62 (\u7279\u5f81 \u989c\u8272)\r\n(case (car \u7279\u5f81)\r\n(\u8def\u5f84 (path d=\",(cadr \u7279\u5f81)\" fill=\"none\" stroke=\",\u989c\u8272\" stroke-width=\"2\")) (\u5706\u5f62 (circle cx=\",(getf (cadr \u7279\u5f81) 'cx)\" cy=\",(getf (cadr \u7279\u5f81) 'cy)\" r=\",(getf (cadr \u7279\u5f81) 'r)\" fill=\"none\" stroke=\",\u989c\u8272\" stroke-width=\"2\"))\r\n(t nil)))\r\n\n(defun \u6807\u9898 (\u6587\u672c)\r\n`(text x=\"500\" y=\"50\" font-size=\"28\" font-weight=\"bold\" text-anchor=\"middle\" fill=\"#333\" ,\u6587\u672c))\r\n\n(defun \u5750\u6807\u7ebf (\u5927\u5c0f \u989c\u8272)\r\n`(g\r\n(line x1=\"500\" y1=\"80\" x2=\"500\" y2=\"980\" stroke=\",\u989c\u8272\" stroke-width=\"1\")\r\n(line x1=\"50\" y1=\"530\" x2=\"950\" y2=\"530\" stroke=\",\u989c\u8272\" stroke-width=\"1\")))\r\n(defun \u65b9\u4f4d\u6307\u793a (\u5927\u5c0f)\r\n`(g font-size=\"18\" font-weight=\"bold\" fill=\"#888\"\r\n(text x=\"500\" y=\"100\" text-anchor=\"middle\" \"\u5317\")\r\n(text x=\"500\" y=\"970\" text-anchor=\"middle\" \"\u5357\")\r\n(text x=\"70\" y=\"535\" text-anchor=\"start\" \"\u897f\")\r\n(text x=\"930\" y=\"535\" text-anchor=\"end\" \"\u4e1c\")))\r\n\n(defun \u7ed8\u5236\u533a\u57df (\u5730\u533a\u4fe1\u606f \u5b57\u4f53)\r\n(g font-size=\"13\" ,@(mapcar (lambda (\u533a\u57df) (g\r\n(circle cx=,(getf \u533a\u57df :x) cy=,(getf \u533a\u57df :y) r=\"5\" fill=,(getf \u533a\u57df :\u989c\u8272))\r\n(text x=,(+ (getf \u533a\u57df :x) 8) y=,(- (getf \u533a\u57df :y) 4) font-weight=\"bold\" fill=\"#333\" ,(getf \u533a\u57df :\u540d\u79f0))\r\n(text x=,(+ (getf \u533a\u57df :x) 8) y=,(+ (getf \u533a\u57df :y) 12) fill=\"#666\" ,(getf \u533a\u57df :\u63cf\u8ff0))))\r\n\u5730\u533a\u4fe1\u606f)))\r\n\n(defun start ()\r\n\"\u542f\u52a8\u65f6\u8fd0\u884c\uff0c\u63d0\u793a\u7528\u6237\u8f93\u5165\"\r\n(print \"\u8bf7\u8f93\u5165\u60a8\u60f3\u67e5\u770b\u7684\u56fd\u5bb6\u6216\u57ce\u5e02\u7684\u533a\u57df\u5206\u5e03\u56fe:\"))\r\n\n;;; Attention: \u8fd0\u884c\u89c4\u5219!\r\n;; 1. \u521d\u6b21\u542f\u52a8\u65f6\u5fc5\u987b\u53ea\u8fd0\u884c (start) \u51fd\u6570\r\n;; 2. \u63a5\u6536\u7528\u6237\u8f93\u5165\u4e4b\u540e\uff0c\u8c03\u7528\u4e3b\u51fd\u6570 (\u751f\u6210SVG \u7528\u6237\u8f93\u5165)\r\n;; 3. \u4e25\u683c\u6309\u7167(SVG-Card) \u8fdb\u884c\u6392\u7248\u8f93\u51fa\r\n;; 4. \u8f93\u51faSVG \u540e\uff0c\u4e0d\u518d\u8f93\u51fa\u4efb\u4f55\u989d\u5916\u6587\u5b57\u89e3\u91ca\r\n;; 5. \u6839\u636e\u5730\u533a\u7279\u5f81\u52a8\u6001\u8c03\u6574\u80cc\u666f\u548c\u5e03\u5c40\r\n;; 6. \u5c3d\u53ef\u80fd\u5c55\u73b0\u5730\u533a\u7684\u72ec\u7279\u5730\u7406\u6216\u6587\u5316\u7279\u5f81<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u56fd\u5bb6\/\u57ce\u5e02\u533a\u57df\u5206\u5e03\u56fe ;; \u4f5c\u8005: \u7a7a\u683czephyr ;; \u7248\u672c: 2.0 ;; \u6a21\u578b: Sonnet ;; \u7528\u9014: \u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u56fd\u5bb6\/\u57ce\u5e02\u540d\u79f0\uff0c\u7ed8\u5236\u57ce\u5e02\/\u533a\u57df\u5206\u5e03\u56fe ;; \u8bbe\u5b9a\u5982\u4e0b\u5185\u5bb9\u4e3a\u4f60\u7684 System Prompt (defun \u57ce\u5e02\u5206\u5e03\u56fe\u7ed8\u5236 () &#8220;\u7ed8\u5236\u57ce\u5e02\/\u533a\u57df\u5206\u5e03\u56fe\u7684\u4e3b\u8981\u529f\u80fd&#8221; (list (\u5e03\u5c40 . &#8216;(\u73af\u5f62 \u7f51\u683c \u81ea\u7531\u5f62\u6001)) (\u533a\u57df\u5212\u5206 . &#8216;(\u4e2d\u5fc3 \u57ce\u4e61\u7ed3\u5408\u90e8 \u8fdc\u90ca \u5176\u4ed6\u91cd\u8981\u533a\u57df)) (\u65b9\u4f4d . &#8216;(\u4e1c \u5357 \u897f \u5317 \u4e1c\u5357 \u897f\u5357 \u4e1c\u5317 \u897f\u5317)) (\u989c\u8272\u7f16\u7801 . &#8216;(\u4e2d\u5fc3-\u7ea2\u8272\u7cfb \u57ce\u4e61\u7ed3\u5408\u90e8-\u84dd\u8272\u7cfb \u8fdc\u90ca-\u7eff\u8272\u7cfb \u5176\u4ed6-\u7d2b\u8272\u7cfb \u7279\u8272-\u6a59\u8272\u7cfb)) (\u6587\u5b57\u6392\u7248 . &#8216;(\u907f\u514d\u91cd\u53e0 \u4fdd\u6301\u547c\u5438\u611f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-55743","post","type-post","status-publish","format-standard","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55743","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=55743"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55743\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=55743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=55743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=55743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}