{"id":31748,"date":"2025-04-22T06:31:13","date_gmt":"2025-04-21T22:31:13","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/31748.html"},"modified":"2025-04-22T06:31:13","modified_gmt":"2025-04-21T22:31:13","slug":"%e5%9c%a8%e5%8d%8e%e4%b8%ba%e5%bc%80%e5%8f%91%e8%80%85%e7%a9%ba%e9%97%b4%ef%bc%8c%e5%9f%ba%e4%ba%8e%e9%b2%b2%e9%b9%8f%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%bf%ab%e9%80%9f%e5%bc%80%e5%8f%91%e6%89%93%e7%a0%96","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/31748.html","title":{"rendered":"\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\uff0c\u57fa\u4e8e\u9cb2\u9e4f\u670d\u52a1\u5668\u5feb\u901f\u5f00\u53d1\u6253\u7816\u5757\u5c0f\u6e38\u620f"},"content":{"rendered":"<p>\u6458\u8981&#xff1a;\u672c\u6848\u4f8b\u5c06\u6307\u5bfc\u5f00\u53d1\u8005\u5982\u4f55\u5728\u9cb2\u9e4f\u670d\u52a1\u5668\u90e8\u7f72\u5e76\u8fd0\u884cweb\u5c0f\u6e38\u620f\u3002<\/p>\n<p>\u672c\u6587\u5206\u4eab\u81ea\u534e\u4e3a\u4e91\u793e\u533a\u300a\u57fa\u4e8e\u9cb2\u9e4f\u670d\u52a1\u5668\u7684\u6253\u7816\u5757\u5c0f\u6e38\u620f\u90e8\u7f72\u300b&#xff0c;\u4f5c\u8005&#xff1a; \u5f00\u53d1\u8005\u7a7a\u95f4\u5c0f\u871c\u8702\u3002<\/p>\n<h3><\/h3>\n<h2>1.1 \u6848\u4f8b\u4ecb\u7ecd<\/h2>\n<p>\u9cb2\u9e4f\u670d\u52a1\u5668\u662f\u57fa\u4e8e\u9cb2\u9e4f\u5904\u7406\u5668\u7684\u65b0\u4e00\u4ee3\u6570\u636e\u4e2d\u5fc3\u670d\u52a1\u5668&#xff0c;\u9002\u7528\u4e8e\u5927\u6570\u636e\u3001\u5206\u5e03\u5f0f\u5b58\u50a8\u3001\u9ad8\u6027\u80fd\u8ba1\u7b97\u548c\u6570\u636e\u5e93\u7b49\u5e94\u7528\u3002\u9cb2\u9e4f\u670d\u52a1\u5668\u5177\u6709\u9ad8\u6027\u80fd\u3001\u4f4e\u529f\u8017\u3001\u7075\u6d3b\u7684\u6269\u5c55\u80fd\u529b&#xff0c;\u9002\u5408\u5927\u6570\u636e\u5206\u6790\u3001\u8f6f\u4ef6\u5b9a\u4e49\u5b58\u50a8\u3001Web\u7b49\u5e94\u7528\u573a\u666f\u3002<\/p>\n<p>\u672c\u6848\u4f8b\u5c06\u6307\u5bfc\u5f00\u53d1\u8005\u5982\u4f55\u5728\u9cb2\u9e4f\u670d\u52a1\u5668\u90e8\u7f72\u5e76\u8fd0\u884cweb\u5c0f\u6e38\u620f\u3002<\/p>\n<h3><\/h3>\n<h2>1.2 \u514d\u8d39\u9886\u53d6\u4e91\u4e3b\u673a<\/h2>\n<p>\u5982\u60a8\u8fd8\u6ca1\u6709\u4e91\u4e3b\u673a&#xff0c;\u53ef\u70b9\u51fb\u94fe\u63a5&#xff0c;\u9886\u53d6\u4e13\u5c5e\u4e91\u4e3b\u673a\u540e\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<p>\u5982\u60a8\u5df2\u9886\u53d6\u4e91\u4e3b\u673a&#xff0c;\u53ef\u76f4\u63a5\u5f00\u59cb\u5b9e\u9a8c\u3002<\/p>\n<h3><\/h3>\n<h2>1.3 \u5b9e\u9a8c\u6d41\u7a0b<\/h2>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"341\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223110-6806c72e95dd3.png\" width=\"720\" \/><\/p>\n<p>\u8bf4\u660e&#xff1a;<\/p>\n<p>\u2460 \u5728\u6848\u4f8b\u4e2d\u5fc3\u4e0b\u8f7d\u9879\u76ee&#xff1b;<\/p>\n<p>\u2461 \u4f7f\u7528\u7ec8\u7aef\u8fde\u63a5\u9cb2\u9e4f\u670d\u52a1\u5668&#xff1b;<\/p>\n<p>\u2462 \u521b\u5efahtml\u6587\u4ef6&#xff1b;<\/p>\n<p>\u2463 \u542f\u52a8Web\u670d\u52a1\u5668&#xff1b;<\/p>\n<p>\u2464 \u4f53\u9a8c\u6e38\u620f\u3002<\/p>\n<h3><\/h3>\n<h2>1.4 \u81ea\u52a8\u90e8\u7f72\u9cb2\u9e4f\u670d\u52a1\u5668<\/h2>\n<p>\u5728\u4e91\u4e3b\u673a\u684c\u9762\u53f3\u952e\u9009\u62e9\u201cOpen Terminal Here\u201d&#xff0c;\u6253\u5f00\u547d\u4ee4\u7ec8\u7aef\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"487\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223110-6806c72ebecb7.png\" width=\"720\" \/><\/p>\n<\/p>\n<p>\u6267\u884c\u81ea\u52a8\u90e8\u7f72\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p>hcd deploy &#8211;password \u8fdc\u7aef\u670d\u52a1\u5668\u5bc6\u7801 &#8211;time 1800<br \/>\n# &#8211;password    \u5f85\u90e8\u7f72\u9879\u76ee\u6240\u5728ECS\u7684root\u7528\u6237\u5bc6\u7801&#xff08;\u81f3\u5c118\u4e2a\u5b57\u7b26&#xff09;<br \/>\n# &#8211;time value   \u5f85\u90e8\u7f72\u8d44\u6e90\u7684\u4fdd\u7559\u671f&#xff08;\u5355\u4f4d\u4e3a\u79d2&#xff0c;\u81f3\u5c11600\u79d2&#xff0c;\u9ed8\u8ba4600\u79d2&#xff09;\u3002\u5f53\u524d\u5b9e\u9a8c\u9884\u4f30\u9700\u898120\u5206\u949f&#xff0c;\u53ef\u4ee5\u914d\u7f6etime\u4e3a\u534a\u5c0f\u65f6\u4fdd\u7559\u671f\u3002 <\/p>\n<p>\u8be5\u547d\u4ee4\u4f1a\u81ea\u52a8\u90e8\u7f72\u9cb2\u9e4f\u670d\u52a1\u5668\u3002\u9996\u6b21\u90e8\u7f72\u4f1a\u76f4\u63a5\u6267\u884c&#xff0c;\u65e7\u8d44\u6e90\u672a\u5230\u671f\u65f6\u91cd\u590d\u90e8\u7f72&#xff0c;\u4f1a\u63d0\u793a\u662f\u5426\u5220\u9664\u524d\u9762\u521b\u5efa\u7684\u8d44\u6e90&#xff0c;\u53ef\u4ee5\u5220\u9664\u65e7\u8d44\u6e90\u518d\u6b21\u90e8\u7f72\u3002<\/p>\n<p>\u8bb0\u5f55\u90e8\u7f72\u8fdc\u7aef\u670d\u52a1\u5668\u516c\u7f51IP&#xff0c;\u5982\u622a\u56fe\u4e2d\u5bf9\u5e94\u7684\u5c31\u662f&#xff1a;113.44.86.210\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"296\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223110-6806c72eedf94.png\" width=\"720\" \/><\/p>\n<\/p>\n<h2>1.5 \u62f7\u8d1d\u4ee3\u7801<\/h2>\n<p>\u65b0\u6253\u5f00\u4e00\u4e2a\u547d\u4ee4\u7a97\u53e3&#xff0c;\u5728\u547d\u4ee4\u7a97\u53e3\u4e2d\u8f93\u5165\u547d\u4ee4\u767b\u5f55\u8fdc\u7aef\u670d\u52a1\u5668&#xff0c;\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p>ssh root&#064;\u8fdc\u7aef\u670d\u52a1\u5668\u516c\u7f51IP <\/p>\n<p>\u8f93\u5165\u5bc6\u7801&#xff08;\u5bc6\u7801\u4e0d\u4f1a\u663e\u793a&#xff09;\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"365\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223111-6806c72f26287.png\" width=\"720\" \/><\/p>\n<p>\u767b\u5f55\u6210\u529f\u540e\u521b\u5efa\u6587\u4ef6\u5939\u7528\u4e8e\u5b58\u653ehtml\u6587\u4ef6&#xff0c;\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p>mkdir game<br \/>\ncd game<br \/>\nvi game.html <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"278\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223111-6806c72f53387.png\" width=\"720\" \/><\/p>\n<p>\u8fdb\u5165\u5230Vim\u7f16\u8f91\u5668&#xff0c;\u6309\u4e0b\u952e\u76d8\u7684\u201ci\u201d\u952e\u8fdb\u5165\u5230\u63d2\u5165\u6a21\u5f0f\u4e0b&#xff0c;\u590d\u5236\u4e0b\u5217\u4ee3\u7801\u7c98\u8d34\u5230\u7f16\u8f91\u5668\u4e2d\u3002<\/p>\n<p>&lt;!DOCTYPE html&gt;<br \/>\n&lt;html lang&#061;&#034;en&#034;&gt;<br \/>\n&lt;head&gt;<br \/>\n    &lt;meta charset&#061;&#034;UTF-8&#034;&gt;<br \/>\n    &lt;meta name&#061;&#034;viewport&#034; content&#061;&#034;width&#061;device-width, initial-scale&#061;1.0&#034;&gt;<br \/>\n    &lt;title&gt;Arkanoid game&lt;\/title&gt;<br \/>\n    &lt;style&gt;<br \/>\n        body {<br \/>\n            display: flex;<br \/>\n            justify-content: center;<br \/>\n            align-items: center;<br \/>\n            height: 100vh;<br \/>\n            margin: 0;<br \/>\n            background-color: #f0f0f0;<br \/>\n        }<\/p>\n<p>        canvas {<br \/>\n            border: 5px solid #3498db;<br \/>\n            border-radius: 10px;<br \/>\n        }<\/p>\n<p>        \/* game start cues *\/<br \/>\n        .game-start-text {<br \/>\n            position: absolute;<br \/>\n            top: 50%;<br \/>\n            left: 50%;<br \/>\n            transform: translate(-50%, -50%);<br \/>\n            font-size: 24px;<br \/>\n            color: green;<br \/>\n            background-color: rgba(255, 255, 255, 0.8);<br \/>\n            padding: 10px;<br \/>\n            border-radius: 5px;<br \/>\n        }<\/p>\n<p>        \/* score display style *\/<br \/>\n        .score-display {<br \/>\n            position: absolute;<br \/>\n            top: 20px;<br \/>\n            left: 50%;<br \/>\n            transform: translateX(-50%);<br \/>\n            font-size: 18px;<br \/>\n            color: #333;<br \/>\n            font-weight: bold;<br \/>\n            background-color: rgba(255, 255, 255, 0.7);<br \/>\n            padding: 5px 10px;<br \/>\n            border-radius: 5px;<br \/>\n        }<br \/>\n    &lt;\/style&gt;<br \/>\n&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<br \/>\n&lt;canvas id&#061;&#034;gameCanvas&#034; width&#061;&#034;800&#034; height&#061;&#034;600&#034;&gt;&lt;\/canvas&gt;<br \/>\n&lt;div class&#061;&#034;score-display&#034; id&#061;&#034;scoreDisplay&#034;&gt;score:0&lt;\/div&gt;<br \/>\n&lt;div id&#061;&#034;gameStartText&#034; class&#061;&#034;game-start-text&#034;&gt;start&lt;\/div&gt;<\/p>\n<p>&lt;audio id&#061;&#034;hitBrickSound&#034; preload&#061;&#034;auto&#034;&gt;<br \/>\n    &lt;source src&#061;&#034;hitBrick.mp3&#034; type&#061;&#034;audio\/mpeg&#034;&gt;<br \/>\n    Your browser does not support the audio element.<br \/>\n&lt;\/audio&gt;<br \/>\n&lt;audio id&#061;&#034;hitPaddleSound&#034; preload&#061;&#034;auto&#034;&gt;<br \/>\n    &lt;source src&#061;&#034;hitPaddle.mp3&#034; type&#061;&#034;audio\/mpeg&#034;&gt;<br \/>\n    Your browser does not support the audio element.<br \/>\n&lt;\/audio&gt;<br \/>\n&lt;audio id&#061;&#034;gameOverSound&#034; preload&#061;&#034;auto&#034;&gt;<br \/>\n    &lt;source src&#061;&#034;gameOver.mp3&#034; type&#061;&#034;audio\/mpeg&#034;&gt;<br \/>\n    Your browser does not support the audio element.<br \/>\n&lt;\/audio&gt;<\/p>\n<p>&lt;script&gt;<br \/>\n    const canvas &#061; document.getElementById(&#039;gameCanvas&#039;);<br \/>\n    const ctx &#061; canvas.getContext(&#039;2d&#039;);<br \/>\n    const ballRadius &#061; 10;<br \/>\n    let x &#061; canvas.width \/ 2;<br \/>\n    let y &#061; canvas.height &#8211; 30;<br \/>\n    let dx &#061; 3;<br \/>\n    let dy &#061; -3;<br \/>\n    const paddleHeight &#061; 10;<br \/>\n    const paddleWidth &#061; 100;<br \/>\n    let paddleX &#061; (canvas.width &#8211; paddleWidth) \/ 2;<br \/>\n    const brickRowCount &#061; 10;<br \/>\n    const brickColumnCount &#061; 15;<br \/>\n    const brickWidth &#061; 48;<br \/>\n    const brickHeight &#061; 20;<br \/>\n    const bricks &#061; [];<br \/>\n    let score &#061; 0;<br \/>\n    let gameStarted &#061; false;<\/p>\n<p>    for (let c &#061; 0; c &lt; brickColumnCount; c&#043;&#043;) {<br \/>\n        bricks[c] &#061; [];<br \/>\n        for (let r &#061; 0; r &lt; brickRowCount; r&#043;&#043;) {<br \/>\n            bricks[c][r] &#061; { x: 0, y: 0, status: 1 };<br \/>\n        }<br \/>\n    }<\/p>\n<p>    document.addEventListener(&#039;mousemove&#039;, mouseMoveHandler, false);<br \/>\n    document.addEventListener(&#039;click&#039;, startGame, false);<\/p>\n<p>    function mouseMoveHandler(e) {<br \/>\n        if (gameStarted) {<br \/>\n            const relativeX &#061; e.clientX &#8211; canvas.offsetLeft;<br \/>\n            if (relativeX &gt; 0 &amp;&amp; relativeX &lt; canvas.width) {<br \/>\n                paddleX &#061; relativeX &#8211; paddleWidth \/ 2;<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    function startGame() {<br \/>\n        if (!gameStarted) {<br \/>\n            gameStarted &#061; true;<br \/>\n            document.getElementById(&#039;gameStartText&#039;).style.display &#061; &#039;none&#039;;<br \/>\n            draw();<br \/>\n        }<br \/>\n    }<\/p>\n<p>    function drawBall() {<br \/>\n        ctx.beginPath();<br \/>\n        ctx.arc(x, y, ballRadius, 0, Math.PI * 2);<br \/>\n        ctx.fillStyle &#061; &#039;#0095DD&#039;;<br \/>\n        ctx.fill();<br \/>\n        ctx.closePath();<br \/>\n    }<\/p>\n<p>    function drawPaddle() {<br \/>\n        ctx.beginPath();<br \/>\n        ctx.rect(paddleX, canvas.height &#8211; paddleHeight, paddleWidth, paddleHeight);<br \/>\n        ctx.fillStyle &#061; &#039;#0095DD&#039;;<br \/>\n        ctx.fill();<br \/>\n        ctx.closePath();<br \/>\n    }<\/p>\n<p>    function drawBricks() {<br \/>\n        for (let c &#061; 0; c &lt; brickColumnCount; c&#043;&#043;) {<br \/>\n            for (let r &#061; 0; r &lt; brickRowCount; r&#043;&#043;) {<br \/>\n                if (bricks[c][r].status &#061;&#061;&#061; 1) {<br \/>\n                    const brickX &#061; c * (brickWidth &#043; 2) &#043; 20;<br \/>\n                    const brickY &#061; r * (brickHeight &#043; 2) &#043; 20;<br \/>\n                    bricks[c][r].x &#061; brickX;<br \/>\n                    bricks[c][r].y &#061; brickY;<br \/>\n                    ctx.beginPath();<br \/>\n                    ctx.rect(brickX, brickY, brickWidth, brickHeight);<br \/>\n                    ctx.fillStyle &#061; &#039;#0095DD&#039;;<br \/>\n                    ctx.fill();<br \/>\n                    ctx.closePath();<br \/>\n                }<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    function collisionDetection() {<br \/>\n        for (let c &#061; 0; c &lt; brickColumnCount; c&#043;&#043;) {<br \/>\n            for (let r &#061; 0; r &lt; brickRowCount; r&#043;&#043;) {<br \/>\n                const b &#061; bricks[c][r];<br \/>\n                if (b.status &#061;&#061;&#061; 1) {<br \/>\n                    if (x &gt; b.x &amp;&amp; x &lt; b.x &#043; brickWidth &amp;&amp; y &gt; b.y &amp;&amp; y &lt; b.y &#043; brickHeight) {<br \/>\n                        dy &#061; -dy;<br \/>\n                        b.status &#061; 0;<br \/>\n                        score&#043;&#043;;<br \/>\n                        document.getElementById(&#039;scoreDisplay&#039;).textContent &#061; &#039;score:&#039; &#043; score;<br \/>\n                        const hitBrickSound &#061; document.getElementById(&#039;hitBrickSound&#039;);<br \/>\n                        hitBrickSound.play();<br \/>\n                    }<br \/>\n                }<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    function draw() {<br \/>\n        ctx.clearRect(0, 0, canvas.width, canvas.height);<br \/>\n        if (gameStarted) {<br \/>\n            drawBricks();<br \/>\n            drawBall();<br \/>\n            drawPaddle();<br \/>\n            collisionDetection();<br \/>\n            x &#043;&#061; dx;<br \/>\n            y &#043;&#061; dy;<br \/>\n            if (x &#043; dx &gt; canvas.width &#8211; ballRadius || x &#043; dx &lt; ballRadius) {<br \/>\n                dx &#061; -dx;<br \/>\n            }<br \/>\n            if (y &#043; dy &lt; ballRadius) {<br \/>\n                dy &#061; -dy;<br \/>\n            } else if (y &#043; dy &gt; canvas.height &#8211; ballRadius) {<br \/>\n                if (x &gt; paddleX &amp;&amp; x &lt; paddleX &#043; paddleWidth) {<br \/>\n                    dy &#061; -dy;<br \/>\n                    const hitPaddleSound &#061; document.getElementById(&#039;hitPaddleSound&#039;);<br \/>\n                    hitPaddleSound.play();<br \/>\n                } else {<br \/>\n                    const gameOverSound &#061; document.getElementById(&#039;gameOverSound&#039;);<br \/>\n                    gameOverSound.play();<br \/>\n                    document.location.reload();<br \/>\n                }<br \/>\n            }<br \/>\n        }<br \/>\n        requestAnimationFrame(draw);<br \/>\n    }<\/p>\n<p>    draw();<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt; <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"361\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223111-6806c72f800c2.png\" width=\"720\" \/><\/p>\n<\/p>\n<p>\u6309\u4e0bESC\u6309\u94ae\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f&#xff0c;\u8f93\u5165\u201c:wq\u201d&#xff0c;\u9000\u51fa\u5e76\u4fdd\u5b58game.html\u6587\u4ef6\u3002<\/p>\n<p>\u5b9e\u9a8c\u4ee3\u7801\u4e5f\u53ef\u4ee5\u5230\u6848\u4f8b\u4e2d\u5fc3\u4e0b\u8f7d\u8be5\u6587\u6863\u9879\u76ee&#xff0c;\u5176\u4e2d\u5305\u542b\u5b9e\u9a8c\u624b\u518c\u548c\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"227\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223111-6806c72fab136.png\" width=\"720\" \/><\/p>\n<h3><\/h3>\n<h2 style=\"background-color:transparent\">1.6 \u5b89\u88c5\u8f6f\u4ef6\u5305<\/h2>\n<p>\u9996\u5148\u5b89\u88c5EPEL(Extra Packages for Enterprise Linux)\u4ed3\u5e93&#xff0c;\u56e0\u4e3aCentOS\u9ed8\u8ba4\u4ed3\u5e93\u4e2d\u7684Python3\u7248\u672c\u53ef\u80fd\u6bd4\u8f83\u65e7&#xff0c;EPEL\u4ed3\u5e93\u63d0\u4f9b\u4e86\u8f83\u65b0\u7684\u7248\u672c&#xff0c;\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p> sudo yum install epel-release <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"352\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223111-6806c72fd8e87.png\" width=\"720\" \/><\/p>\n<p>\u5b89\u88c5Python3&#xff0c;\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p>sudo yum install -y python3  <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"460\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223112-6806c7301361f.png\" width=\"888\" \/><\/p>\n<\/p>\n<p>\u5b89\u88c5\u6210\u529f\u540e\u68c0\u67e5Python3\u7248\u672c\u786e\u8ba4\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p>python3 &#8211;version <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"34\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223112-6806c7305f1f0.png\" width=\"881\" \/><\/p>\n<h3><\/h3>\n<h2>1.7 \u6d4f\u89c8\u5668\u8bbf\u95ee<\/h2>\n<p>\u5728\u5f53\u524d\u5b58\u653e\u4ee3\u7801\u7684\u8def\u5f84\u4e0b&#xff0c;\u4f7f\u7528Python3\u542f\u52a8\u4e00\u4e2a\u7b80\u5355\u7684Web\u670d\u52a1\u5668&#xff0c;\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p>python3 -m http.server <\/p>\n<p>\u5982\u4e0b\u56fe\u6240\u793a&#xff0c;\u4ee3\u8868\u5f53\u524dWeb\u670d\u52a1\u5668\u5df2\u7ecf\u542f\u52a8\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"33\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223112-6806c73085ccf.png\" width=\"720\" \/><\/p>\n<p>\u6253\u5f00\u706b\u72d0\u6d4f\u89c8\u5668&#xff0c;\u5728\u5730\u5740\u680f\u8f93\u5165\u201c\u5f39\u6027\u4e91\u670d\u52a1\u5668IP:8000\/game.html\u201d\u5373\u53ef\u4f53\u9a8c\u6e38\u620f\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"342\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223112-6806c730aa252.png\" width=\"720\" \/><\/p>\n<p>\u81f3\u6b64\u5b9e\u9a8c\u5168\u90e8\u5b8c\u6210\u3002<\/p>\n<\/p>\n<p>\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u6c47\u805a\u4e86\u9e3f\u8499\u3001\u6607\u817e\u3001\u9cb2\u9e4f\u3001GaussDB\u3001\u6b27\u62c9\u7b49\u5404\u7c7b\u6839\u6280\u672f\u7684\u5f00\u53d1\u8d44\u6e90\u4e0e\u5de5\u5177&#xff0c;\u4e3a\u6bcf\u4e00\u4f4d\u5f00\u53d1\u8005\u63d0\u4f9b\u4e00\u53f0\u4e91\u4e3b\u673a\u3001\u4e00\u5957\u5f00\u53d1\u5de5\u5177\u4ee5\u53ca\u5145\u8db3\u7684\u4e91\u4e0a\u5b58\u50a8\u7a7a\u95f4&#xff0c;\u52a9\u529b\u5f00\u53d1\u8005\u57fa\u4e8e\u534e\u4e3a\u6839\u751f\u6001\u521b\u65b0\u3002\u70b9\u51fb\u94fe\u63a5&#xff0c;\u9886\u53d6\u4f60\u7684\u4e13\u5c5e\u4e91\u4e3b\u673a\u3002<\/p>\n<\/p>\n<p>\u70b9\u51fb\u5173\u6ce8&#xff0c;\u7b2c\u4e00\u65f6\u95f4\u4e86\u89e3\u534e\u4e3a\u4e91\u65b0\u9c9c\u6280\u672f~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u672c\u6848\u4f8b\u5c06\u6307\u5bfc\u5f00\u53d1\u8005\u5982\u4f55\u5229\u7528\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u5728\u9cb2\u9e4f\u670d\u52a1\u5668\u90e8\u7f72\u5e76\u8fd0\u884cweb\u5c0f\u6e38\u620f\u3002_hitbrick.mp3 hitpaddle.mp3 gameover.mp3<\/p>\n","protected":false},"author":2,"featured_media":31736,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,2575,2574,2573,43,44,65],"topic":[],"class_list":["post-31748","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python","tag-web","tag-2574","tag-2573","tag-43","tag-44","tag-65"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\uff0c\u57fa\u4e8e\u9cb2\u9e4f\u670d\u52a1\u5668\u5feb\u901f\u5f00\u53d1\u6253\u7816\u5757\u5c0f\u6e38\u620f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/31748.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\uff0c\u57fa\u4e8e\u9cb2\u9e4f\u670d\u52a1\u5668\u5feb\u901f\u5f00\u53d1\u6253\u7816\u5757\u5c0f\u6e38\u620f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u672c\u6848\u4f8b\u5c06\u6307\u5bfc\u5f00\u53d1\u8005\u5982\u4f55\u5229\u7528\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u5728\u9cb2\u9e4f\u670d\u52a1\u5668\u90e8\u7f72\u5e76\u8fd0\u884cweb\u5c0f\u6e38\u620f\u3002_hitbrick.mp3 hitpaddle.mp3 gameover.mp3\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/31748.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-21T22:31:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223110-6806c72e95dd3.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/31748.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/31748.html\",\"name\":\"\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\uff0c\u57fa\u4e8e\u9cb2\u9e4f\u670d\u52a1\u5668\u5feb\u901f\u5f00\u53d1\u6253\u7816\u5757\u5c0f\u6e38\u620f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-21T22:31:13+00:00\",\"dateModified\":\"2025-04-21T22:31:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/31748.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/31748.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/31748.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\uff0c\u57fa\u4e8e\u9cb2\u9e4f\u670d\u52a1\u5668\u5feb\u901f\u5f00\u53d1\u6253\u7816\u5757\u5c0f\u6e38\u620f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\uff0c\u57fa\u4e8e\u9cb2\u9e4f\u670d\u52a1\u5668\u5feb\u901f\u5f00\u53d1\u6253\u7816\u5757\u5c0f\u6e38\u620f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/31748.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\uff0c\u57fa\u4e8e\u9cb2\u9e4f\u670d\u52a1\u5668\u5feb\u901f\u5f00\u53d1\u6253\u7816\u5757\u5c0f\u6e38\u620f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u672c\u6848\u4f8b\u5c06\u6307\u5bfc\u5f00\u53d1\u8005\u5982\u4f55\u5229\u7528\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u5728\u9cb2\u9e4f\u670d\u52a1\u5668\u90e8\u7f72\u5e76\u8fd0\u884cweb\u5c0f\u6e38\u620f\u3002_hitbrick.mp3 hitpaddle.mp3 gameover.mp3","og_url":"https:\/\/www.wsisp.com\/helps\/31748.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-21T22:31:13+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250421223110-6806c72e95dd3.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/31748.html","url":"https:\/\/www.wsisp.com\/helps\/31748.html","name":"\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\uff0c\u57fa\u4e8e\u9cb2\u9e4f\u670d\u52a1\u5668\u5feb\u901f\u5f00\u53d1\u6253\u7816\u5757\u5c0f\u6e38\u620f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-21T22:31:13+00:00","dateModified":"2025-04-21T22:31:13+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/31748.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/31748.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/31748.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\uff0c\u57fa\u4e8e\u9cb2\u9e4f\u670d\u52a1\u5668\u5feb\u901f\u5f00\u53d1\u6253\u7816\u5757\u5c0f\u6e38\u620f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/31748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=31748"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/31748\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/31736"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=31748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=31748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=31748"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=31748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}