{"id":22,"date":"2024-12-11T23:16:24","date_gmt":"2024-12-11T15:16:24","guid":{"rendered":"http:\/\/www.luips.com\/?p=22"},"modified":"2024-12-11T23:44:18","modified_gmt":"2024-12-11T15:44:18","slug":"python-%e8%8e%b7%e5%8f%96%e5%8f%98%e9%87%8f%e5%90%8d","status":"publish","type":"post","link":"https:\/\/www.luips.com\/index.php\/jinyanjiaocheng\/python\/python-%e8%8e%b7%e5%8f%96%e5%8f%98%e9%87%8f%e5%90%8d\/","title":{"rendered":"Python \u83b7\u53d6\u53d8\u91cf\u540d"},"content":{"rendered":"<p><code>from varname import nameof<br \/>\nvar = 123<br \/>\nname = nameof(var)<br \/>\n# name \u7684\u503c\u4e3a 'var'<br \/>\n<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>\u6210\u529f\u83b7\u53d6\u5230\u53d8\u91cfvar\u7684\u540d\u5b57<\/p>\n","protected":false},"excerpt":{"rendered":"<p>from varname import nameof var&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[4],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-python","tag-python"],"_links":{"self":[{"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":1,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":23,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/posts\/22\/revisions\/23"}],"wp:attachment":[{"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}