{"id":104,"date":"2024-02-26T15:30:02","date_gmt":"2024-02-26T07:30:02","guid":{"rendered":"http:\/\/blog.shaoqing.fun\/?p=104"},"modified":"2024-11-13T16:57:28","modified_gmt":"2024-11-13T08:57:28","slug":"%e6%a1%88%e4%be%8b-17%ef%bc%9a%e4%b8%80%e4%b8%aa-ppt-%e7%94%9f%e6%88%90%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/blog.shaoqing.fun\/?p=104","title":{"rendered":"\u6848\u4f8b 17\uff1a\u4e00\u4e2a PPT \u751f\u6210\u5de5\u5177"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\u4e00\u3001\u8fd9\u662f\u9700\u6c42\uff1a  \n``` \n\u6211\u60f3\u8981\u4f60\u5e2e\u6211\u8bbe\u8ba1\u4e00\u4e2a\u8fd0\u884c\u5728 Mac \u7aef\u7684\u8f6f\u4ef6\uff0c\u4f7f\u7528 Python \u548c QT\u6765\u5b9e\u73b0\u3002        \n\n## \u4e3b\u8981\u529f\u80fd    \n\u6253\u5f00\u8fd9\u4e2a\u8f6f\u4ef6\uff0c\u8f93\u5165\u63d0\u793a\uff0c\u8c03\u7528ChatGPT\u7684 API \u83b7\u53d6\u8fd4\u56de\u5185\u5bb9\uff08\u5185\u5bb9\u8981\u662fMarp\u683c\u5f0f\u7684\uff09\u3002\u7136\u540e\u7528\u6237\u786e\u8ba4\u5185\u5bb9\u4e4b\u540e\uff0c\u91c7\u7528Marp\u7684\u5e93\uff0c\u751f\u6210PDF\u683c\u5f0f\u7ed9\u7528\u6237\u3002          \n\n## UI \u754c\u9762     \n\u7a97\u53e3\u540d\u79f0\u4e3a\u201c\u751f\u6210\u6f14\u793a\u6587\u7a3f\u201d\u3002   \n- \u7528\u6237\u63d0\u793a\u8bcd\u7684\u8f93\u5165\u6846\uff08\u7528\u6237\u5728\u8fd9\u91cc\u5199\u5165\u81ea\u5df1\u7684Prompt\uff0c\u5728\u53d1\u9001\u7ed9 ChatGPT \u4e4b\u524d\uff0c\u5c06\u7528\u6237\u586b\u5199\u7684Prompt\u66ff\u6362\u8fdb\u8fd9\u6bb5\u8bdd\u201c\u4f60\u4f5c\u4e3a\u9876\u7ea7\u7684\u54a8\u8be2\u987e\u95ee\u548c\u6f14\u793a\u6587\u7a3f\u4e13\u5bb6\uff0c\u8bf7\u4e3a\u7528\u6237\u751f\u6210\u4e00\u4efdMarp\u683c\u5f0f\u7684\u6f14\u793a\u6587\u7a3f\u6587\u6848\uff0c\u5176\u4e2d\u914d\u56fe\u4ee5Markdown\u683c\u5f0f\u663e\u793a\uff0c\u8bf7\u4f7f\u7528Unsplash API\uff0c\u7528\u6237\u7684\u9700\u6c42\u4e3a&#91;prompt]\u201d\uff09\u3002 \n- \u53d1\u9001\u6309\u94ae\uff1a\u70b9\u51fb\u4e4b\u540e\uff0c\u5c06Prompt \u53d1\u9001\u7ed9 ChatGPT\u3002  \n- \u6f14\u793a\u6587\u7a3fMarp \u6587\u6848\u7684\u8f93\u5165\u6846\uff1a\u663e\u793aChatGPT \u8fd4\u56de\u7684\u6587\u6848\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u8fd9\u91cc\u7f16\u8f91\u3002\n- \u201c\u64ad\u653e\u6f14\u793a\u6587\u7a3f\u201d\u7684\u6309\u94ae\uff1a\u70b9\u51fb\u4e4b\u540e\uff0c\u5c06\u8f93\u5165\u6846\u5185\u7684\u5185\u5bb9\u751f\u6210 HTML\uff0c\u7528\u9ed8\u8ba4\u6d4f\u89c8\u5668\u6253\u5f00\u3002\n- \u201c\u751f\u6210 PDF \u683c\u5f0f\u201d\u7684\u6309\u94ae\uff1a\u70b9\u51fb\u4e4b\u540e\uff0c\u5c06\u8f93\u5165\u6846\u5185\u7684\u5185\u5bb9\u751f\u6210 PDF\uff0c\u4fdd\u5b58\u5230\u5f53\u524d\u6587\u4ef6\u5939\uff08\u6587\u4ef6\u540d\u79f0\u4e3a\u6f14\u793a\u6587\u7a3f\u6807\u9898\uff09\uff0c\u5e76\u76f4\u63a5\u6253\u5f00 PDF \u6587\u4ef6\u3002\n\u6ce8\u610f\u63a7\u4ef6\u7684\u5927\u5c0f\u3001\u5bf9\u9f50\u7b49\uff0c\u8981\u4fdd\u8bc1\u6392\u7248\u89c4\u6574\u3001\u7f8e\u89c2\u3002      \n\n## \u5176\u4ed6\u8981\u6c42  \n- \u91c7\u7528 ChatGPT \u7684 GPT-4 \u6a21\u578b\uff0c\u4f7f\u7528 OpenAI \u7684 Python \u5305\uff0cAPI_KEY\u662fSxnQiuPbIzq0QTUua\u3002 \n- \u58f0\u660e\u6240\u6709\u7684\u4f9d\u8d56\u3002  \n- \u6240\u6709\u6ce8\u91ca\u4f7f\u7528\u4e2d\u6587\u3002   \n\n```  \n\u8bf7\u6ce8\u610f\uff0c\u6240\u6709\u4f9d\u8d56\u5df2\u9ed8\u8ba4\u51c6\u5907\u5b8c\u6bd5\uff0c\u5e76\u4e14\u786e\u8ba4\u53ef\u4ee5\u8054\u7f51\u3002  \n\n\u4e8c\u3001\u8bf7\u91c7\u7528\u8f6f\u4ef6\u5de5\u7a0b\u6700\u4f73\u5b9e\u8df5\uff0c\u5199\u51fa\u5b8c\u6574\u4ee3\u7801\u3002<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6,7],"class_list":["post-104","post","type-post","status-publish","format-standard","hentry","category-4","tag-6","tag-7"],"_links":{"self":[{"href":"https:\/\/blog.shaoqing.fun\/index.php?rest_route=\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.shaoqing.fun\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.shaoqing.fun\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.shaoqing.fun\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.shaoqing.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104"}],"version-history":[{"count":5,"href":"https:\/\/blog.shaoqing.fun\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/blog.shaoqing.fun\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions\/217"}],"wp:attachment":[{"href":"https:\/\/blog.shaoqing.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.shaoqing.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.shaoqing.fun\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}