{"id":10021052,"date":"2025-10-28T23:05:12","date_gmt":"2025-10-28T15:05:12","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021052"},"modified":"2025-10-28T23:05:12","modified_gmt":"2025-10-28T15:05:12","slug":"vscode%e3%80%81trae-%e6%97%a0%e6%b3%95%e6%99%ba%e8%83%bd%e6%8f%90%e7%a4%ba-pydantic-%e7%9b%b8%e5%85%b3%e7%9a%84%e5%87%bd%e6%95%b0%e4%ba%86%ef%bc%8c%e5%8f%98%e6%88%90%e7%99%bd%e8%89%b2%e7%9a%84","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021052","title":{"rendered":"vscode\u3001trae \u65e0\u6cd5\u667a\u80fd\u63d0\u793a pydantic \u76f8\u5173\u7684\u51fd\u6570\u4e86\uff0c\u53d8\u6210\u767d\u8272\u7684\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>\u4e00\u5f00\u59cb trae \u53d1\u73b0\u4e0d\u80fd\u53ea\u80fd\u63d0\u793a pydantic \u76f8\u5173\u7684\u51fd\u6570\u4e86\uff0c\u4ee5\u4e3a\u662f trae \u7684\u95ee\u9898\uff0c\u6362\u4e86 vscode \u6253\u5f00\u540c\u4e00\u4e2a\u9879\u76ee\u4e5f\u8fd8\u662f\u4e0d\u884c\u3002<\/p>\n<p>\u4ee5\u4e3a\u662f pipenv \u865a\u62df\u73af\u5883\u51fa\u95ee\u9898\u4e86\uff0c\u4f46\u662f\u91cd\u65b0\u88c5\u4e86 pipenv \u73af\u5883\u4e5f\u4e0d\u884c<\/p>\n<p>\u91cd\u542f\u7535\u8111\u4e5f\u4e0d\u884c\uff0c\u91cd\u542f vscode\u3001trae \u7b49\u7b49\u90fd\u4e0d\u884c<\/p>\n<p>\u7136\u540e\u6211\u60f3\u4f1a\u4e0d\u4f1a\u662f .vscode \u76ee\u5f55\u4e0b\u7684\u4e1c\u897f\u51fa\u95ee\u9898\u4e86<\/p>\n<p>\u4f46\u662f <code>ls -lah<\/code> \u53d1\u73b0\u6ca1\u6709 .vscode \u76ee\u5f55<\/p>\n<p>\u4f46\u662f\u770b\u5230\u4e86\u4e00\u4e2a <code>__pycache__<\/code> \u76ee\u5f55\uff0c\u7136\u540e\u6211\u5220\u9664\u4e86\u5b83\uff0c\u7136\u540e\u91cd\u542f\u4e00\u4e0b vscode\u3001trae \u95ee\u9898\u5c31\u597d\u4e86<\/p>\n<p>\u6240\u4ee5\u89e3\u51b3\u65b9\u6848\u5c31\u662f<\/p>\n<pre><code class=\"shell\">rm -rf __pycache__<\/code><\/pre>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047351599\">https:\/\/segmentfault.com\/a\/1190000047351599<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u5f00\u59cb trae \u53d1\u73b0\u4e0d\u80fd\u53ea\u80fd\u63d0\u793a pydantic \u76f8\u5173\u7684\u51fd\u6570\u4e86\uff0c\u4ee5\u4e3a\u662f trae \u7684\u95ee\u9898\uff0c\u6362\u4e86 vscod [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10021052","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021052"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021052\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}