{"id":13179,"date":"2022-12-20T14:52:35","date_gmt":"2022-12-20T06:52:35","guid":{"rendered":"https:\/\/fgchen.com\/wpedu\/?p=13179"},"modified":"2026-03-30T14:32:19","modified_gmt":"2026-03-30T06:32:19","slug":"tqc-%e7%a8%8b%e5%bc%8f%e8%aa%9e%e8%a8%80python-502-%e4%b9%98%e7%a9%8d","status":"publish","type":"post","link":"https:\/\/fgchen.com\/wpedu\/2022\/12\/tqc-%e7%a8%8b%e5%bc%8f%e8%aa%9e%e8%a8%80python-502-%e4%b9%98%e7%a9%8d\/","title":{"rendered":"TQC+ \u7a0b\u5f0f\u8a9e\u8a00Python 502 \u4e58\u7a4d"},"content":{"rendered":"1. \u984c\u76ee\u8aaa\u660e:\r\n\u8acb\u958b\u555fPYD502.py\u6a94\u6848\uff0c\u4f9d\u4e0b\u5217\u984c\u610f\u9032\u884c\u4f5c\u7b54\uff0c\u4f9d\u4f7f\u7528\u8005\u8f38\u5165\u7684\u6578\u5b57\u4f5c\u70ba\u53c3\u6578\u50b3\u905e\u4e26\u8a08\u7b97\u4e58\u7a4d\uff0c\u4f7f\u8f38\u51fa\u503c\u7b26\u5408\u984c\u610f\u8981\u6c42\u3002\u4f5c\u7b54\u5b8c\u6210\u8acb\u53e6\u5b58\u65b0\u6a94\u70baPYA502.py\u518d\u9032\u884c\u8a55\u5206\u3002\r\n\r\n2. \u8a2d\u8a08\u8aaa\u660e\uff1a\r\n\u8acb\u64b0\u5beb\u4e00\u7a0b\u5f0f\uff0c\u5c07\u4f7f\u7528\u8005\u8f38\u5165\u7684\u5169\u500b\u6574\u6578\u4f5c\u70ba\u53c3\u6578\u50b3\u905e\u7d66\u4e00\u500b\u540d\u70bacompute(x, y)\u7684\u51fd\u5f0f\uff0c\u6b64\u51fd\u5f0f\u5c07\u56de\u50b3x\u548cy\u7684\u4e58\u7a4d\u3002\r\n\r\n3. \u8f38\u5165\u8f38\u51fa\uff1a\r\n\u8f38\u5165\u8aaa\u660e\r\n\u5169\u500b\u6574\u6578\r\n\r\n\u8f38\u51fa\u8aaa\u660e\r\n\u5169\u500b\u6574\u6578\u76f8\u4e58\u4e4b\u4e58\u7a4d\r\n\r\n\u7bc4\u4f8b\u8f38\u5165\r\n56\r\n11\r\n\u7bc4\u4f8b\u8f38\u51fa\r\n616\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def compute(x, y):\r\n    return(x*y)\r\n\r\nx = eval(input())\r\ny = eval(input())\r\nprint( compute(x, y) )<\/pre>\r\n&nbsp;","protected":false},"excerpt":{"rendered":"<p>1. \u984c\u76ee\u8aaa\u660e: \u8acb\u958b\u555fPYD502.py\u6a94\u6848\uff0c\u4f9d\u4e0b\u5217\u984c\u610f\u9032\u884c\u4f5c\u7b54\uff0c\u4f9d\u4f7f\u7528\u8005\u8f38\u5165 &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[266],"tags":[],"class_list":["post-13179","post","type-post","status-publish","format-standard","hentry","category-266"],"_links":{"self":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/13179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/comments?post=13179"}],"version-history":[{"count":2,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/13179\/revisions"}],"predecessor-version":[{"id":13778,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/13179\/revisions\/13778"}],"wp:attachment":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/media?parent=13179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/categories?post=13179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/tags?post=13179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}