{"id":7760,"date":"2024-07-07T11:01:01","date_gmt":"2024-07-07T03:01:01","guid":{"rendered":""},"modified":"2024-07-07T11:01:01","modified_gmt":"2024-07-07T03:01:01","slug":"python\u8f93\u51fa\u542b\u53d8\u91cf\u7684\u53e5\u5b50_python\u8f93\u51fa\u8ba1\u7b97\u7ed3\u679c\u7684\u529f\u80fd\u51fd\u6570","status":"publish","type":"post","link":"https:\/\/mushiming.com\/7760.html","title":{"rendered":"python\u8f93\u51fa\u542b\u53d8\u91cf\u7684\u53e5\u5b50_python\u8f93\u51fa\u8ba1\u7b97\u7ed3\u679c\u7684\u529f\u80fd\u51fd\u6570"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

Python\u57fa\u7840\u8bed\u6cd5\u3010\u53d8\u91cf\u4e0e\u8fd0\u7b97\u7b26\u3011<\/h2>\n

1.\u57fa\u7840\u8bed\u6cd5<\/h2>\n

1.\u8f93\u51fa\u51fd\u6570\uff08\u6253\u5370\u51fd\u6570\uff09\u2014\u2014print<\/h3>\n

\u5b9a\u4e49<\/strong>\uff1a\u63a7\u5236\u53f0\u663e\u793a\u5f97\u5185\u5bb9\u4e00\u5b9a\u662fprint\u6253\u5370\u5f97\u5185\u5bb9\uff1b\u60f3\u663e\u793a\u5728\u63a7\u5236\u53f0\uff0c\u5219\u7528print\u6253\u5370\u3002<\/p>\n

1\uff09\u4e00\u6b21\u6253\u5370\u4e00\u4e2a\u6570\u636e\uff1aprint\uff08\u6570\u636e\uff09<\/p>\n

a =<\/span> 10<\/span> print<\/span>(<\/span>10<\/span>)<\/span> print<\/span>(<\/span>\"nice day\"<\/span>)<\/span> print<\/span>(<\/span>10<\/span> +<\/span> 10<\/span>)<\/span> <\/code><\/pre>\n

2\uff09\u540c\u65f6\u6253\u5370\u591a\u4e2a\u6570\u636e : print(\u6570\u636e1\uff0c\u6570\u636e2\uff0c\u2026)\u7528\u9017\u53f7\u9694\u5f00<\/p>\n

print<\/span>(<\/span>10<\/span>,<\/span> 20<\/span>,<\/span> 30<\/span>,<\/span> 40<\/span>)<\/span> print<\/span>(<\/span>\"nice\"<\/span>,<\/span> 123<\/span>)<\/span> <\/code><\/pre>\n

3\uff09\u5b9a\u5236end\uff1aprint(\u6570\u636e1, \u6570\u636e2, \u6570\u636e3, \u2026, end=\u5b57\u7b26\u4e32)
\u6ce8\u610f\uff1aprint\u6253\u5370\u6570\u636e\u7684\u65f6\u5019\uff0c\u4f1a\u5c06\u6240\u6709\u7684\u6570\u636e\u4f9d\u6b21\u6253\u5370\u5230\u63a7\u5236\u53f0\u4e2d\uff0c\u6253\u5370\u5b8c\u6570\u636e\u540e\uff0c\u4f1a\u81ea\u52a8\u6253\u5370end\u7684\u503c\uff08end\u9ed8\u8ba4\u662f\u6362\u884c\uff09<\/p>\n

print<\/span>(<\/span>100<\/span>)<\/span> print<\/span>(<\/span>\"abc\"<\/span>)<\/span> print<\/span>(<\/span>200<\/span>)<\/span> print<\/span>(<\/span>\"__________________________\u534e\u4e3d\u7684\u5206\u5272\u7ebf_________________________\"<\/span>)<\/span> print<\/span>(<\/span>100<\/span>,<\/span> end=<\/span>\"abc\"<\/span>)<\/span> print<\/span>(<\/span>200<\/span>)<\/span> print<\/span>(<\/span>\"__________________________\u534e\u4e3d\u7684\u5206\u5272\u7ebf_________________________\"<\/span>)<\/span> print<\/span>(<\/span>100<\/span>,<\/span> end=<\/span>\"+\"<\/span>)<\/span> print<\/span>(<\/span>200<\/span>,<\/span> end=<\/span>\"=\"<\/span>)<\/span> print<\/span>(<\/span>100<\/span> +<\/span> 200<\/span>)<\/span> print<\/span>(<\/span>\"__________________________\u534e\u4e3d\u7684\u5206\u5272\u7ebf_________________________\"<\/span>)<\/span> print<\/span>(<\/span>10<\/span>,<\/span> 20<\/span>,<\/span> 30<\/span>,<\/span> end=<\/span>'!'<\/span>)<\/span> print<\/span>(<\/span>40<\/span>)<\/span> print<\/span>(<\/span>\"__________________________\u534e\u4e3d\u7684\u5206\u5272\u7ebf_________________________\"<\/span>)<\/span> print<\/span>(<\/span>100<\/span>,<\/span> end=<\/span>'\/'<\/span>)<\/span> print<\/span>(<\/span>20<\/span>,<\/span> end=<\/span>'='<\/span>)<\/span> print<\/span>(<\/span>5<\/span>)<\/span> <\/code><\/pre>\n

4\uff09 \u5b9a\u5236sep:
a. print(\u6570\u636e1, \u6570\u636e2, \u6570\u636e3, \u2026, sep=\u5b57\u7b26\u4e32)
b. print(\u6570\u636e1, \u6570\u636e2, \u6570\u636e3, \u2026, sep=\u5b57\u7b26\u4e32,end=\u5b57\u7b26\u4e32)
\u6ce8\u610f\uff1a\u4e00\u4e2aprint\u540c\u65f6\u6253\u5370\u591a\u4e2a\u6570\u636e\u7684\u65f6\u5019\uff0c\u6570\u636e\u548c\u6570\u636e\u4e4b\u95f4\u5206\u5272\u65b9\u5f0f\u7531sep\u7684\u503c\u51b3\u5b9a\uff0csep\u9ed8\u8ba4\u7684\u503c\u662f\u7a7a\u683c\u3002<\/p>\n

print<\/span>(<\/span>\"good\"<\/span>,<\/span> \"nice\"<\/span>,<\/span> sep=<\/span>\"!\"<\/span>)<\/span> # \u76f8\u5f53\u4e8e\u7528sep\u540e\u9762\u7684\u5b57\u7b26\u4e32\u6765\u9694\u5f00<\/span> print<\/span>(<\/span>\"__________________________\u534e\u4e3d\u7684\u5206\u5272\u7ebf_________________________\"<\/span>)<\/span> print<\/span>(<\/span>10<\/span>,<\/span> 20<\/span>,<\/span> 30<\/span>,<\/span> 40<\/span>,<\/span> sep=<\/span>\"+\"<\/span>,<\/span> end=<\/span>\"=\"<\/span>)<\/span> print<\/span>(<\/span>10<\/span> +<\/span> 20<\/span> +<\/span> 30<\/span> +<\/span> 40<\/span>)<\/span> print<\/span>(<\/span>\"__________________________\u534e\u4e3d\u7684\u5206\u5272\u7ebf_________________________\"<\/span>)<\/span> <\/code><\/pre>\n

2.\u8f93\u5165\u51fd\u6570\u2014\u2014input<\/h3>\n

\u5b9a\u4e49\uff1a<\/strong> \u8f93\u5165\u51fd\u6570\u4ece\u63a7\u5236\u83b7\u53d6\u6570\u636e\u5230\u7a0b\u5e8f\u4e2d\u4f7f\u7528\uff0c\u4f7f\u63a7\u5236\u53f0\u5177\u6709\u8f93\u5165\u80fd\u529b\uff1b<\/p>\n

1\uff09\u57fa\u672c\u7528\u6cd5\uff1a<\/strong> \u53d8\u91cf = input\uff08\u8f93\u5165\u63d0\u793a\u4fe1\u606f\uff09\u2014\u2014 \u63d0\u793a\u7528\u6237\u8f93\u5165\u6570\u636e\uff0c\u5e76\u4e14\u5c06\u8f93\u5165\u7684\u7ed3\u679c\u4fdd\u5b58\u5728\u53d8\u91cf\u4e2d<\/p>\n

name =<\/span> input<\/span>(<\/span>\"\u8bf7\u8f93\u5165\u4f60\u7684\u540d\u5b57\uff1a\"<\/span>)<\/span> # \u5c06input\u8f93\u5165\u7684\u5185\u5bb9\u4fdd\u5b58\u5728\u53d8\u91cf\u4e2d\u4ee5\u4f9b\u7a0b\u5e8f\u4f7f\u7528<\/span> print<\/span>(<\/span>name)<\/span> <\/code><\/pre>\n

2\uff09input\u51fd\u6570\u4e0d\u7ba1\u8f93\u5165\u7684\u6570\u636e\u662f\u4ec0\u4e48\uff0c\u5f97\u5230\u7684\u6570\u636e\u7c7b\u578b\u90fd\u662fstr\uff08\u5b57\u7b26\u4e32\uff09\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u5b66\u4f1a\u7c7b\u578b\u8f6c\u6362\uff1b<\/p>\n

age =<\/span> int<\/span>(<\/span>input<\/span>(<\/span>\"\u8bf7\u8f93\u5165\u4f60\u7684\u5e74\u9f84\uff1a\"<\/span>)<\/span>)<\/span> # \u6ca1\u6709\u8f6c\u5316\u4e4b\u524d\u8f93\u51fa\u7684\u5e74\u9f84\u662f\u6587\u672c\u7c7b\u578b\uff0c\u5982\u679c\u9700\u548c\u6570\u5b57\u8fdb\u884c\u6bd4\u8f83\u5219\u9700\u8981\u8f6c\u5316\u6210int\u7c7b\u578b<\/span> print<\/span>(<\/span>age)<\/span> print<\/span>(<\/span>age <<\/span> 25<\/span>)<\/span> weight =<\/span> float<\/span>(<\/span>input<\/span>(<\/span>\"\u8bf7\u8f93\u5165\u4f53\u91cd\uff08kg\uff09\uff1a\"<\/span>)<\/span>)<\/span> # \u4f53\u91cd\u662f\u6d6e\u70b9\u578b\uff0c\u6240\u4ee5\u5982\u679c\u662f\u60f3\u6700\u540e\u8f93\u51fa\u7684\u662f\u65a4\uff0c\u5219\u9700\u8981\u5c06\u4f53\u91cd\u8f6c\u5316\u6210\u6d6e\u70b9\u578bfloat<\/span> print<\/span>(<\/span>weight *<\/span> 2<\/span>,<\/span> \"\u65a4\"<\/span>)<\/span> tel =<\/span> input<\/span>(<\/span>\"\u8bf7\u8f93\u5165\u4f60\u7684\u7535\u8bdd\uff1a\"<\/span>)<\/span> print<\/span>(<\/span>tel)<\/span> <\/code><\/pre>\n

\u6ce8\u610f\uff1a\u4e0d\u7ba1\u901a\u8fc7input\u8f93\u5165\u7684\u662f\u4ec0\u4e48\u6570\u636e\uff0c\u5f97\u5230\u7684\u6570\u636e\u7684\u7c7b\u578b\u90fd\u662f\u5b57\u7b26\u4e32<\/p>\n

name =<\/span> input<\/span>(<\/span>\"\u8bf7\u8f93\u5165\u59d3\u540d\uff1a\"<\/span>)<\/span> print<\/span>(<\/span>name,<\/span> type<\/span>(<\/span>name)<\/span>)<\/span> age =<\/span> input<\/span>(<\/span>\"\u8bf7\u8f93\u5165\u5e74\u9f84:\"<\/span>)<\/span> # age= int(input(\"\u8bf7\u8f93\u5165\u5e74\u9f84:\"))<\/span> print<\/span>(<\/span>age,<\/span> type<\/span>(<\/span>age)<\/span>)<\/span> # '18\"<\/span> print<\/span>(<\/span>int<\/span>(<\/span>age)<\/span> <<\/span> 18<\/span>)<\/span> <\/code><\/pre>\n

3.\u6ce8\u91ca<\/h3>\n

\u5b9a\u4e49\uff1a<\/strong> \u6ce8\u91ca\u6307\u7684\u662f\u7a0b\u5e8f\u4e2d\u4e0d\u53c2\u4e0e\u7f16\u8bd1\u6267\u884c\uff08\u4e0d\u5f71\u54cd\u7a0b\u5e8f\u529f\u80fd\uff09\u7684\u90e8\u5206\u6ce8\u91ca\u3002
3.1\u5355\u884c\u6ce8\u91ca\u2014\u2014\u5728\u4e00\u884c\u5185\u5bb9\u524d\u52a0#
3.2\u591a\u884c\u6ce8\u91ca\u2014\u2014\u5c06\u6ce8\u91ca\u5185\u5bb9\u653e\u5728\"\"\"\u5f00\u5934\u6216\u8005\u2019''\u5f00\u5934\u7684\u4e2d\u95f4<\/p>\n

'''\u8fd9\u4e2a\u662f\u6ce8\u91ca'''<\/span> <\/code><\/pre>\n

3.3\u6ce8\u91ca\u7684\u4f5c\u7528
1\uff09\u5bf9\u4ee3\u7801\u8fdb\u884c\u6ce8\u89e3\u548c\u8bf4\u660e\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027
2\uff09\u53d6\u6d88\u4ee3\u7801\u529f\u80fd
3)\u5feb\u6377\u952e\uff1actrl+\/<\/p>\n

4.\u6807\u8bc6\u7b26\u2014\u2014\u547d\u540d\u8981\u6c42<\/h3>\n

1.python\u8bed\u6cd5\u5982\u679c\u9700\u8981\u7ed9\u67d0\u4e2a\u4e1c\u897f\u53d6\u540d\u5b57\uff0c\u540d\u5b57\u5fc5\u987b\u662f\u6807\u8bc6\u7b26\u3002
2.\u6807\u8bc6\u7b26\uff1a\u7531\u5b57\u6bcd\u6570\u5b57\u4e0b\u5212\u7ebf\u7ec4\u6210\uff0c\u5e76\u4e14\u6570\u5b57\u4e0d\u80fd\u5f00\u5934\uff0c \u4f8b\u5982\uff1a\u53d8\u91cf\u540d = \u6570\u636e\u3002<\/p>\n

5.\u5173\u952e\u5b57<\/h3>\n

1.\u5173\u952e\u5b57\u5c31\u662f\u672c\u8eab\u5177\u6709\u7279\u6b8a\u610f\u4e49\u6216\u8005\u7279\u6b8a\u529f\u80fd\u7684\u6807\u8bc6\u7b26\uff0c\u5173\u952e\u5b57\u4e0d\u80fd\u7528\u6765\u4f5c\u4e3a\u540d\u5b57\u4f7f\u7528\u3002<\/p>\n

while<\/span> =<\/span> 1<\/span> #\uff08while\u51fd\u6570\u5df2\u7ecf\u662f\u5173\u952e\u5b57\u4e86\u6240\u4ee5\u4e0d\u80fd\u628awhile\u4f5c\u4e3a\u6807\u8bc6\u7b26\uff09<\/span> <\/code><\/pre>\n

6.\u884c\u548c\u7f29\u8fdb<\/h3>\n

1\uff09\u4e00\u6761\u8bed\u53e5\u5360\u4e00\u884c\uff0c\u4e00\u884c\u7ed3\u675f\u4e0d\u9700\u8981\u5206\u53f7<\/p>\n

print<\/span>(<\/span>666<\/span>)<\/span> print<\/span>(<\/span>888<\/span>)<\/span> <\/code><\/pre>\n

2)\u4e00\u884c\u7684\u5f00\u5934\u4e0d\u80fd\u968f\u610f\u6dfb\u52a0\u7f29\u8fdb\uff08\u7a7a\u767d\u7b26\u53f7\uff09
3\uff09\u591a\u6761\u8bed\u53e5\u653e\u4e00\u884c\uff0c\u8bed\u53e5\u4e0e\u8bed\u53e5\u4e4b\u95f4\u5fc5\u987b\u52a0\u5206\u53f7<\/p>\n

print<\/span>(<\/span>666<\/span>)<\/span>;<\/span>print<\/span>(<\/span>888<\/span>)<\/span> <\/code><\/pre>\n

7.\u5e38\u89c1\u7684\u6570\u636e\u548c\u6570\u636e\u7c7b\u578b<\/h3>\n
1.<\/span>\u6570\u5b57\u6570\u636e\uff1a\u7528\u6765\u8868\u793a\u6570\u503c\u5927\u5c0f\u7684\u6570\u636e\uff0c\u6bd4\u5982\uff1a\u5e74\u9f84\uff0c\u4f53\u91cd\uff0c\u4ef7\u683c\u7b49\u7b49\u6570\u5b57\u3002\u6ce8\u610f\u7535\u8bdd\u53f7\u7801\u4e0d\u662f\u6570\u5b57\u6570\u636e\uff0c\u770b\u5177\u4f53\u610f\u4e49\uff1b \u8868\u793a\u65b9\u6cd5\uff1a\u7a0b\u5e8f\u4e2d\u8868\u793a\u6570\u5b57\u7684\u65b9\u5f0f\u548c\u6570\u5b66\u4e2d\u7684\u4e00\u6837\u5305\u62ec\u79d1\u5b66\u8ba1\u6570\u6cd5 \u5bf9\u5e94\u7684\u7c7b\u578b\uff1aint<\/span>\uff08\u6574\u578b\u53ca\u6574\u6570\u2014\u2014\u4e0d\u5e26\u5c0f\u6570\u70b9\u7684\u6570\u636e\uff09\uff0cfloat<\/span>\uff08\u6d6e\u70b9\u578b\u2014\u2014\u6240\u6709\u5e26\u5c0f\u6570\u70b9\u7684\u6570\uff09 2.<\/span>\u6587\u672c\u6570\u636e\uff1a\u7528\u6587\u5b57\u7b26\u53f7\u6765\u8868\u793a\u4fe1\u606f\u7684\u6570\u636e\uff0c\u6bd4\u5982\uff1a\u59d3\u540d\uff0c\u7c4d\u8d2f,<\/span>\u7535\u8bdd\uff0c\u8eab\u4efd\u8bc1\u53f7\u7801\u7b49 \u8868\u793a\u65b9\u6cd5\uff1a\u5fc5\u987b\u5c06\u6570\u636e\u653e\u5728\u5355\u5f15\u53f7\u6216\u53cc\u5f15\u53f7\u91cc\u9762\uff1a\u201c\u59d3\u540d\u201d\uff0c'\u6210\u90fd'<\/span>\uff0c\u2019028<\/span>-<\/span>8888<\/span>\u2018 \u6570\u636e\u5bf9\u5e94\u7684\u7c7b\u578b\uff1astr<\/span>(<\/span>\u5b57\u7b26\u4e32-<\/span>python\u6ca1\u6709\u5b57\u7b26\u7c7b\u578b)<\/span> tel =<\/span> \"\"<\/span> name =<\/span> \"\u5f20\u4e09\"<\/span> 3.<\/span>\u5e03\u5c14\u6570\u636e\uff1a\u53ea\u6709True<\/span>\u548c False<\/span>\u4e24\u4e2a\u503c\u3002True<\/span>\u8868\u793a\u771f\uff0c\u6210\u7acb\uff1bFalse<\/span>\u8868\u793a\u5047\uff0c\u4e0d\u6210\u7acb\uff0c\u5426\u5b9a\u7684\u56de\u7b54\u3002\uff08T\/<\/span>F\u5fc5\u987b\u5927\u5199\uff0c\u5426\u5219\u65e0\u6548\uff09 \u7a0b\u5e8f\u4e2d\u8868\u793a\u5e03\u5c14\u503c\u7684\u65f6\u5019\u76f4\u63a5\u5199True<\/span>\u6216\u8005False<\/span>\u3002 \u5e03\u5c14\u5bf9\u5e94\u7684\u7c7b\u578b\uff1abool<\/span>\uff08\u5e03\u5c14\uff09 print<\/span>\uff08100<\/span>><\/span>20<\/span>\uff09#True<\/span> 4.<\/span>\u7a7a\u503c\uff1a\u7528None<\/span>\u6765\u8868\u793a\u7a7a\uff0c\u8868\u793a\u6ca1\u6709 <\/code><\/pre>\n

2.\u53d8\u91cf<\/h2>\n

1.\u6570\u636e\u7684\u4f7f\u7528\u65b9\u6cd5<\/h3>\n

\u5b9a\u4e49\uff1a<\/strong> \u5728\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u6570\u636e\u7684\u65f6\u5019\uff0c\u5e94\u8be5\u5148\u5c06\u6570\u636e\u4fdd\u5b58\u5728\u53d8\u91cf\u4e2d\uff0c\u7136\u540e\u518d\u901a\u8fc7\u4f7f\u7528\u53d8\u91cf\u6765\u4f7f\u7528\u53d8\u91cf\u4e2d\u4fdd\u5b58\u7684\u6570\u636e\u3002<\/p>\n

2.\u5b9a\u4e49\u53d8\u91cf\uff08\u521b\u5efa\u53d8\u91cf\uff09<\/h3>\n

1\uff09\u8bed\u6cd5\uff1a<\/strong> \u53d8\u91cf\u540d = \u6570\u636e
2\uff09\u8bf4\u660e\uff1a<\/strong>
a.\u53d8\u91cf\u540d<\/strong><\/em> \u2014\u2014\u7531\u7a0b\u5e8f\u5458\u81ea\u5df1\u547d\u540d\uff1b
2\u4e2a\u8981\u6c42\uff1a\u662f\u6807\u8bc6\u7b26\uff1b\u4e0d\u662f\u5173\u952e\u5b57
3\u4e2a\u89c4\u8303\uff1a
\u30101\u3011\u89c1\u540d\u77e5\u4e49\uff08\u89c1\u5230\u53d8\u91cf\u540d\u5b57\u5c31\u77e5\u9053\u4fdd\u5b58\u7684\u662f\u4ec0\u4e48\u610f\u601d\uff09\uff1b
\u30102\u3011\u4e0d\u4f7f\u7528\u7cfb\u7edf\u7684\u51fd\u6570\u540d\uff0c\u7c7b\u540d\u548c\u6a21\u5757\u540d\uff1b
\u30103\u3011\u6240\u6709\u5b57\u6bcd\u90fd\u5c0f\u5199\uff0c\u591a\u4e2a\u5355\u8bcd\u4e4b\u95f4\u7528\u4e0b\u5212\u7ebf\u9694\u5f00\uff1b
b. =<\/strong><\/em> \u2014\u2014 \u56fa\u5b9a\u5199\u6cd5
c. \u6570\u636e<\/strong><\/em> \u2014\u2014\u53ef\u4ee5\u662f\u4efb\u4f55\u6709\u7ed3\u679c\u7684\u8868\u8fbe\u5f0f\uff0c\u6bd4\u5982\uff1a\u5177\u4f53\u7684\u67d0\u79cd\u7c7b\u578b\u7684\u6570\u636e\uff0c\u8fd0\u7b97\u7ed3\u679c\uff0c\u51fd\u6570\u8c03\u7528\u8868\u8fbe\u5f0f\u7b49\u3002<\/p>\n

a =<\/span> 10<\/span> b =<\/span> \"\u6587\u672c\u6570\u636e\"<\/span> c =<\/span> 10<\/span>+<\/span>20<\/span> name =<\/span> \"Bob\"<\/span> dog_name =<\/span> \"lily\"<\/span> # PEP8\u547d\u540d\u89c4\u8303<\/span> dogName =<\/span> \"lily\"<\/span> # \u9a7c\u5cf0\u5f0f\u547d\u540d<\/span> <\/code><\/pre>\n

3.\u4f7f\u7528\u53d8\u91cf<\/h3>\n

\u5b9a\u4e49\uff1a<\/strong> \u4f7f\u7528\u53d8\u91cf\u5c31\u662f\u4f7f\u7528\u53d8\u91cf\u4e2d\u4fdd\u5b58\u7684\u6570\u636e\uff08\u6570\u636e\u80fd\u505a\u7684\u4e8b\u60c5\uff0c\u4fdd\u5b58\u6570\u636e\u7684\u53d8\u91cf\u90fd\u53ef\u4ee5\u505a\uff09<\/p>\n

\u6ce8\u610f\uff1a<\/strong> \u53d8\u91cf\u5fc5\u987b\u5148\u5b9a\u4e49\u518d\u4f7f\u7528\u3002<\/p>\n

a =<\/span> 10<\/span> print<\/span>(<\/span>a)<\/span> print<\/span>(<\/span>a +<\/span> 10<\/span>)<\/span> num1 =<\/span> 11<\/span> num2 =<\/span> a print<\/span>(<\/span>num2)<\/span> <\/code><\/pre>\n

4.\u91cd\u65b0\u7ed9\u53d8\u91cf\u8d4b\u503c(\u7b49\u518d\u6b21print\u8f93\u51fa\u65f6\u5c31\u662f\u65b0\u7684\u503c)<\/h3>\n

\u6ce8\u610f\uff1a<\/strong> python\u4e2d\u540c\u4e00\u4e2a\u53d8\u91cf\u53ef\u4ee5\u4fdd\u5b58\u4e0d\u540c\u7c7b\u578b\u7684\u503c\u3002<\/p>\n

a =<\/span> 100<\/span> print<\/span>(<\/span>a)<\/span> a =<\/span> \"abc\"<\/span> print<\/span>(<\/span>a)<\/span> <\/code><\/pre>\n

#1\uff09\u5b9a\u4e49\u5b8c\u53d8\u91cf\u4ee5\u540e\u53ef\u4ee5\u91cd\u65b0\u7ed9\u53d8\u91cf\u8d4b\u503c\uff0c\u91cd\u65b0\u8d4b\u503c\u540e\u5728\u4f7f\u7528\u53d8\u91cf\uff0c\u4f7f\u7528\u7684\u662f\u65b0\u7684\u503c ,<\/p>\n

score =<\/span> 100<\/span> print<\/span>(<\/span>score)<\/span> <\/code><\/pre>\n

2\uff09\u91cd\u65b0\u8d4b\u503c\u7684\u65f6\u5019\u53ef\u4ee5\u8d4b\u4e0d\u540c\u7c7b\u578b\u7684\u503c(\u7b49\u518d\u6b21print\u8f93\u51fa\u65f6\u5c31\u662f\u65b0\u7684\u503c)<\/p>\n

score =<\/span> '\u4f18\u79c0'<\/span> print<\/span>(<\/span>score)<\/span> <\/code><\/pre>\n

5.\u540c\u65f6\u5b9a\u4e49\u591a\u4e2a\u53d8\u91cf<\/h3>\n

1)\u53d8\u91cf\u540d1 = \u53d8\u91cf\u540d2 = \u53d8\u91cf\u540d3 = \u2026 = \u6570\u636e \u2014\u2014 \u540c\u65f6\u5b9a\u4e49\u591a\u4e2a\u53d8\u91cf\u8d4b\u76f8\u540c\u7684\u503c\u3002<\/p>\n

a1 =<\/span> b1 =<\/span> c1 =<\/span> 100<\/span> print<\/span>(<\/span>a1,<\/span> b1,<\/span> c1)<\/span> <\/code><\/pre>\n

2\uff09\u53d8\u91cf\u540d1,\u53d8\u91cf\u540d2,\u53d8\u91cf\u540d3,\u2026=\u6570\u636e1,\u6570\u636e2,\u6570\u636e3,\u2026 \u2014\u2014\u540c\u65f6\u5b9a\u4e49\u591a\u4e2a\u53d8\u91cf\u8d4b\u4e0d\u540c\u7684\u503c\uff08\u53d8\u91cf\u7684\u6570\u636e\u5fc5\u987b\u548c\u6570\u636e\u7684\u6570\u91cf\u4fdd\u6301\u4e00\u81f4\uff09<\/p>\n

x,<\/span> y =<\/span> 100<\/span>,<\/span> 200<\/span> print<\/span>(<\/span>x,<\/span> y)<\/span> <\/code><\/pre>\n
 \u6848\u4f8b\uff1a\u4ea4\u6362\u4e24\u4e2a\u53d8\u91cf\u7684\u503c m =<\/span> 200<\/span> n =<\/span> 30<\/span> m,<\/span> n =<\/span> n,<\/span> m print<\/span>(<\/span>m,<\/span> n)<\/span> print<\/span>(<\/span>\"__________________________\u534e\u4e3d\u7684\u5206\u5272\u7ebf_________________________\"<\/span>)<\/span> m =<\/span> 100<\/span> n =<\/span> 10<\/span> x =<\/span> m m =<\/span> n n =<\/span> x print<\/span>(<\/span>m,<\/span> n)<\/span> # \u4f20\u7edf\u7684\u65b9\u6cd5:\u521b\u5efa\u7a7a\u676f\u5b50\u65b9\u6cd5<\/span> <\/code><\/pre>\n

3.\u53d8\u91cf\u7684\u5e95\u5c42\u903b\u8f91<\/h2>\n

1.python\u53d8\u91cf\u5b58\u50a8\u6570\u636e\u548c\u91cd\u65b0\u8d4b\u503c\u7684\u5e95\u5c42
a. python\u5b9a\u4e49\u53d8\u91cf\u7684\u65f6\u5019\u5148\u7533\u8bf7\u5185\u5b58\uff0c\u5185\u5b58\u7533\u8bf7\u591a\u5927\u770b\u6570\u636e\u591a\u5927\uff0c\u7533\u8bf7\u5b8c\u5185\u5b58\u540e\u5c06\u6570\u636e\u4fdd\u5b58\u5728\u5185\u5b58\u4e2d\uff0c\u7136\u540e\u5c06\u53d8\u91cf\u548c\u5bf9\u4e8e\u7684\u5185\u5b58\u8fdb\u884c\u5173\u8054
b. \u91cd\u65b0\u7ed9\u53d8\u91cf\u8d4b\u503c\u7684\u65f6\u5019\uff0c\u4f1a\u6839\u636e\u65b0\u7684\u503c\u91cd\u65b0\u7533\u8bf7\u65b0\u7684\u5185\u5b58\uff0c\u7136\u540e\u5c06\u65b0\u7684\u6570\u636e\u4fdd\u5b58\u5230\u65b0\u7684\u5185\u5b58\u4e2d\uff0c\u6700\u540e\u5c06\u53d8\u91cf\u548c\u65b0\u7684\u5185\u5b58\u8fdb\u884c\u5173\u8054
c. id\u51fd\u6570 \u2014\u2014 \u83b7\u53d6\u53d8\u91cf\u5bf9\u5e94\u7684\u5185\u5b58\u5730\u5740<\/p>\n

a =<\/span> 10<\/span> print<\/span>(<\/span>id<\/span>(<\/span>a)<\/span>)<\/span> a =<\/span> 100<\/span> print<\/span>(<\/span>id<\/span>(<\/span>a)<\/span>)<\/span> <\/code><\/pre>\n

4.\u6570\u5b66\u8fd0\u7b97\u7b26<\/h2>\n

\u5b9a\u4e49\uff1a<\/strong> \u6570\u5b66\u8fd0\u7b97\u7b26\uff1a+\uff0c-\uff0c*\uff0c\/\uff0c%\uff08\u53d6\u4f59\uff0c\u53d6\u6a21\uff09\uff0c\/\/(\u6574\u9664)\uff0c**\uff08\u5e42\u8fd0\u7b97\uff09\u3002<\/p>\n

4.1 \u52a0\u51cf\u4e58\u9664<\/h3>\n

1\uff09+\uff0c-\uff0c *\uff0c \/ \u7684\u529f\u80fd\u548c\u6570\u5b66\u91cc\u9762\u7684\u52a0\u51cf\u4e58\u9664\u529f\u80fd\u4e00\u6837\uff1b<\/p>\n

2\uff09\u6ce8\u610f\uff1a\u9664\u6cd5\u8fd0\u7b97\u7684\u7ed3\u679c\u4e00\u5b9a\u662ffloat\u7c7b\u578b\uff1b<\/p>\n

4.2 %\uff08\u53d6\u4f59\uff0c\u53d6\u6a21\u5c31\u662f\u4f59\u6570\uff09<\/h3>\n

1\uff09x % y<\/strong> \u2014\u2014\u6c42x\u9664\u4ee5y\u7684\u4f59\u6570<\/p>\n

print<\/span>(<\/span>10<\/span> %<\/span> 3<\/span>)<\/span> print<\/span>(<\/span>10<\/span> %<\/span> 4<\/span>)<\/span> <\/code><\/pre>\n

2)**\u5e94\u7528\u573a\u666f1\uff1a**\u5224\u65ad\u4e24\u4e2a\u6574\u6570\u4e4b\u95f4\u662f\u5426\u5b58\u5728\u6574\u9664\u5173\u7cfb\uff08\u5224\u65ad\u4e00\u4e2a\u6570\u662f\u5426\u80fd\u591f\u88ab\u53e6\u5916\u4e00\u4e2a\u6570\u6574\u9664\uff09<\/p>\n

num1 =<\/span> 999<\/span> num2 =<\/span> 666<\/span> print<\/span>(<\/span>num1 %<\/span> num2 ==<\/span> 0<\/span>)<\/span> # \u5224\u65ad\u662f\u5426\u80fd\u6574\u9664<\/span> print<\/span>(<\/span>num1 %<\/span> 2<\/span> ==<\/span> 0<\/span>)<\/span> # \u5224\u65ad\u662f\u5426\u4e3a\u5076\u6570<\/span> <\/code><\/pre>\n

3)\u5e94\u7528\u573a\u666f2\uff1a<\/strong> \u83b7\u53d6\u6574\u6570\u7684\u4f4e\u4f4d\u6570<\/p>\n

num3 =<\/span> 47389<\/span> print<\/span>(<\/span>num3 %<\/span> 10<\/span>)<\/span> # \u5f97\u5230\u4e2a\u4f4d\u6570\u4e3a9<\/span> print<\/span>(<\/span>num3 %<\/span> 100<\/span>)<\/span> # \u5f97\u5230\u540e\u4e24\u4f4d89<\/span> print<\/span>(<\/span>num3 %<\/span> 1000<\/span>)<\/span> # \u5f97\u5230\u540e\u4e09\u4f4d389<\/span> <\/code><\/pre>\n

4.3 \/\/ (\u6574\u9664) -\u6c42\u5546\uff0c\u5546\u5411\u5c0f\u53d6\u6574<\/h3>\n
print<\/span>(<\/span>5<\/span>\/\/<\/span>2<\/span>)<\/span> # \u5148\u505a5\/2\uff0c\u5f97\u52302.5\uff0c2<2.5<3,\u53d62<\/span> print<\/span>(<\/span>-<\/span>5<\/span>\/\/<\/span>2<\/span>)<\/span> # -3<\/span> <\/code><\/pre>\n

1\uff09\u5e94\u7528\u573a\u666f1:<\/strong> \u5b8c\u6574\u7684\u4e2a\u6570<\/p>\n

\u4f8b\u5982\uff1anum\u4e2d\u6709\u591a\u5c11\u4e2a\u5b8c\u6574\u768410<\/span> num4 =<\/span> 7374<\/span> print<\/span>(<\/span>num4 \/\/<\/span> 10<\/span>)<\/span> \u4f8b\u5982\uff1atime\u4e2d\u6709\u591a\u5c11\u4e2a\u5b8c\u6574\u7684\u5c0f\u65f6 time1 =<\/span> <\/span> print<\/span>(<\/span>time1 \/\/<\/span> 3600<\/span>)<\/span> <\/code><\/pre>\n

2\uff09\u5e94\u7528\u573a\u666f2\uff1a<\/strong> \u83b7\u53d6\u6574\u6570\u7684\u9ad8\u4f4d\u6570\uff0c\u53bb\u6389\u4f4e\u4f4d\u6570<\/p>\n

num5 =<\/span> 2345<\/span> print<\/span>(<\/span>num5 \/\/<\/span> 10<\/span>)<\/span> # 234<\/span> print<\/span>(<\/span>num5 \/\/<\/span> 100<\/span>)<\/span> # 23<\/span> print<\/span>(<\/span>num5 \/\/<\/span> 1000<\/span>)<\/span> # 2<\/span> <\/code><\/pre>\n

3\uff09\u601d\u8003\uff1a<\/strong> \u83b7\u53d6\u4efb\u610f\u4e00\u4e2a\u6b63\u6574\u6570\u7684\u5341\u4f4d\u6570<\/p>\n

num =<\/span> int<\/span>(<\/span>input<\/span>(<\/span>\"\u8bf7\u8f93\u5165\u6570\u5b57\uff1a\"<\/span>)<\/span>)<\/span> print<\/span>(<\/span>num \/\/<\/span> 10<\/span> %<\/span> 10<\/span>)<\/span> <\/code><\/pre>\n

4.4 \uff08\u5e42\u8fd0\u7b97\uff09<\/h3>\n

1\uff09x**Y \uff1a \u6c42x\u7684y\u6b21\u65b9<\/p>\n

print<\/span>(<\/span>3<\/span> **<\/span> 4<\/span>)<\/span> print<\/span>(<\/span>5<\/span> **<\/span> 2<\/span>)<\/span> print<\/span>(<\/span>4<\/span>**<\/span>0.5<\/span>)<\/span> #4\u7684\u4e8c\u5206\u4e4b\u4e00\u6b21\u65b9<\/span> print<\/span>(<\/span>2<\/span>**<\/span>-<\/span>2<\/span>)<\/span> print<\/span>(<\/span>8<\/span>**<\/span>(<\/span>1<\/span>\/<\/span>3<\/span>)<\/span>)<\/span> <\/code><\/pre>\n

5.\u6bd4\u8f83\u8fd0\u7b97\u7b26<\/h2>\n

\u5b9a\u4e49\uff1a<\/strong> >(\u5927\u4e8e)\uff0c<(\u5c0f\u4e8e)\uff0c==\uff08\u7b49\u4e8e\uff09\uff0c\uff01=\uff08\u4e0d\u7b49\u4e8e\uff09\uff0c>=\uff08\u5927\u4e8e\u7b49\u4e8e\uff09\uff0c<=(\u5c0f\u4e8e\u7b49\u4e8e)<\/p>\n

1\uff09\u6bd4\u8f83\u8fd0\u7b97\u7b26\u7684\u8fd0\u7b97\u7ed3\u679c\u662f\u5e03\u5c14\u503c\u3002<\/p>\n

print<\/span>(<\/span>10<\/span> ><\/span> 20<\/span>)<\/span> print<\/span>(<\/span>10<\/span> <<\/span> 20<\/span>)<\/span> print<\/span>(<\/span>10<\/span> ==<\/span> 20<\/span>)<\/span> print<\/span>(<\/span>10<\/span> !=<\/span> 20<\/span>)<\/span> <\/code><\/pre>\n

2\uff09\u652f\u6301\u8fde\u5199\u8868\u793a\u8303\u56f4\u3002<\/p>\n

age =<\/span> 26<\/span> print<\/span>(<\/span>18<\/span> <=<\/span> age <=<\/span> 28<\/span>)<\/span> print<\/span>(<\/span>age >=<\/span> 18<\/span> and<\/span> age <=<\/span> 28<\/span>)<\/span> <\/code><\/pre>\n

6.\u903b\u8f91\u8fd0\u7b97\u7b26<\/h2>\n

\u5b9a\u4e49\uff1a<\/strong> and(\u903b\u8f91\u4e0e\u8fd0\u7b97)\uff0cor\uff08\u903b\u8f91\u4e0e\u8fd0\u7b97\uff09\uff0cnot\uff08\u903b\u8f91\u975e\u8fd0\u7b97\uff09\uff0c\u903b\u8f91\u8fd0\u7b97\u7b26\u4f7f\u7528\u7528\u6765\u5728\u7a0b\u5e8f\u4e2d\u8fde\u63a5\u591a\u4e2a\u6761\u4ef6\u5f62\u6210\u590d\u5408\u6761\u4ef6\u7684\u3002<\/p>\n

6.1 and\uff08\u903b\u8f91\u4e0e\u8fd0\u7b97\uff09<\/h3>\n

1\uff09\u5e94\u7528\u573a\u666f\uff1a<\/strong> \u8fde\u63a5\u9700\u8981\u540c\u65f6\u6210\u7acb\u7684\u4e24\u4e2a\u6761\u4ef6\uff0c\u76f8\u5f53\u4e8e\u751f\u6d3b\u4e2d\u7684\u2018\u5e76\u4e14\u2019\u3002
2\uff09\u8fd0\u7b97\u89c4\u5219\uff1a<\/strong><\/p>\n

True and True - True True and False - False False and False - False False and True - False <\/code><\/pre>\n

3\uff09\u6848\u4f8b<\/strong><\/p>\n

1.<\/span>\u5224\u65adnum\u662f\u5426\u80fd\u591f\u540c\u65f6\u88ab3<\/span>\u548c7<\/span>\u6574\u9664 num =<\/span> int<\/span>(<\/span>input<\/span>(<\/span>\"\u8bf7\u8f93\u5165\u6570\u5b57\uff1a\"<\/span>)<\/span>)<\/span> print<\/span>(<\/span>\"num\u662f\u5426\u80fd\u540c\u65f6\u88ab3\u548c7\u6574\u9664\"<\/span>,<\/span> num %<\/span> 3<\/span> ==<\/span> 0<\/span> and<\/span> num %<\/span> 7<\/span> ==<\/span> 0<\/span>)<\/span> print<\/span>(<\/span>\"num\u662f\u5426\u80fd\u540c\u65f6\u88ab3\u548c7\u6574\u9664\"<\/span>,<\/span> num %<\/span> 21<\/span> ==<\/span> 0<\/span>)<\/span> <\/code><\/pre>\n
2.<\/span>\u5224\u65adnum\u662f\u5426\u662f\u4e00\u4e2a\u5927\u4e8e10<\/span>\u7684\u5947\u6570 num =<\/span> 11<\/span> print<\/span>(<\/span>\"num\u662f\u5426\u662f\u5927\u4e8e10\u7684\u5947\u6570\"<\/span>,<\/span> num ><\/span> 10<\/span> and<\/span> num %<\/span>2<\/span> !=<\/span> 0<\/span>)<\/span> <\/code><\/pre>\n

6.2 or (\u903b\u8f91\u6216\u8fd0\u7b97)<\/h3>\n

1)\u5e94\u7528\u573a\u666f\uff1a<\/strong> \u5982\u679c\u8981\u6c42\u4e24\u4e2a\u6216\u8005\u591a\u4e2a\u6761\u4ef6\u6709\u4e00\u4e2a\u6210\u7acb\u5c31\u53ef\u4ee5\uff0c\u5c31\u7528or\u8fde\u63a5\uff0c\u76f8\u5f53\u4e8e\u751f\u6d3b\u4e2d\u2018\u6216\u8005\u2019.
2\uff09\u8fd0\u7b97\u89c4\u5219\uff1a<\/strong><\/p>\n

True or True - True True or False - True False or True - True False or False - False <\/code><\/pre>\n

3)\u6848\u4f8b<\/strong><\/p>\n

1.<\/span>\u5224\u65adnum\u662f\u5426\u80fd\u591f\u88ab3<\/span>\u6216\u80057<\/span>\u6574\u9664 num =<\/span> 23<\/span> print<\/span>(<\/span>\"num\u662f\u5426\u80fd\u88ab3\u6216\u80057\u6574\u9664\"<\/span>,<\/span> num %<\/span> 3<\/span> ==<\/span> 0<\/span> or<\/span> num %<\/span> 7<\/span> ==<\/span> 0<\/span>)<\/span> 2.<\/span>\u5224\u65adyear\u5bf9\u5e94\u7684\u5e74\u4efd\u662f\u5426\u662f\u95f0\u5e74 year =<\/span> 1998<\/span> # \u95f0\u5e74\uff1a\u4e16\u7eaa\u95f0\u5e74\uff08\u80fd\u88ab400\u6574\u9664\uff09\u666e\u901a\u95f0\u5e74\uff08\u80fd\u88ab4\u6574\u9664\u4f46\u662f\u4e0d\u80fd\u88ab100\u6574\u9664\uff09\u4e24\u79cd<\/span> print<\/span>(<\/span>'year\u662f\u5426\u662f\u95f0\u5e74:'<\/span>,<\/span> year %<\/span> 400<\/span> ==<\/span> 0<\/span> or<\/span> (<\/span>year %<\/span> 4<\/span> ==<\/span> 0<\/span> and<\/span> year %<\/span> 100<\/span> !=<\/span>0<\/span> )<\/span>)<\/span> <\/code><\/pre>\n

6.3 not \uff08\u903b\u8f91\u975e\u8fd0\u7b97\uff09<\/h3>\n

1)\u5e94\u7528\u573a\u666f\uff1a<\/strong> \u5bf9\u5e94\u7b2c\u4e00\u4e2a\u6761\u4ef6\u8fdb\u884c\u5426\u5b9a\uff0c\u76f8\u5f53\u4e8e\u751f\u6d3b\u4e2d\u7684\u4e0d\u3002
2)\u8fd0\u7b97\u89c4\u5219\uff1a<\/strong><\/p>\n

not True -> False not false -> True <\/code><\/pre>\n

7.\u8d4b\u503c\u8fd0\u7b97\u7b26<\/h2>\n

\u5b9a\u4e49\uff1a<\/strong> = \uff0c+=\uff0c -=\uff0c*=\uff0c\/=, \/\/=, %=,**=<\/p>\n

\u6ce8\u610f\uff1a<\/strong> \u4e0d\u7ba1\u662f\u4ec0\u4e48\u6837\u7684\u8d4b\u503c\u8fd0\u7b97\u7b26\uff0c\u4ed6\u4eec\u7684\u76ee\u7684\u90fd\u662f\u5c06\u6570\u636e\u4fdd\u5b58\u5230\u53d8\u91cf\u4e2d\u3002<\/p>\n

7.1 =\uff1a\u8d4b\u503c\u7b26\u53f7<\/h3>\n

\u683c\u5f0f\uff1a<\/strong> \u53d8\u91cf = \u6570\u636e \u2014\u2014\u5c06\u8d4b\u503c\u7b26\u53f7\u53f3\u8fb9\u7684\u6570\u636e\u76f4\u63a5\u4fdd\u5b58\u5230\u5de6\u8fb9\u7684\u53d8\u91cf\u4e2d<\/p>\n

a =<\/span> 10<\/span> <\/code><\/pre>\n

7.2 \u590d\u5408\u7684\u8d4b\u503c\u8fd0\u7b97<\/h3>\n

\u683c\u5f0f\uff1a<\/strong> \u53d8\u91cf += \u6570\u636e \u2014\u2014\u5c06\u53d8\u91cf\u4e2d\u7684\u6570\u636e\u53d6\u51fa\u6765\u548c\u540e\u9762\u7684\u6570\u636e\u8fdb\u884c\u52a0\u6cd5\u8fd0\u7b97\uff0c\u6700\u540e\u5c06\u8ba1\u7b97\u7ed3\u679c\u91cd\u65b0\u8d4b\u503c\u7ed9\u524d\u9762\u7684\u53d8\u91cf\u3002
** \u6ce8\u610f\uff1a** \u6ce8\u610f:\u590d\u5408\u7684\u8d4b\u503c\u8fd0\u7b97\u7b26\u5fc5\u987b\u662f\u5df2\u7ecf\u8d4b\u503c\u8fc7\u7684\u53d8\u91cf<\/p>\n

num =<\/span> 12<\/span> num +=<\/span> 2<\/span> # num = num + 2<\/span> print<\/span>(<\/span>num)<\/span> # 14<\/span> num -=<\/span> 3<\/span> # num = num - 3<\/span> print<\/span>(<\/span>num)<\/span> # 11<\/span> num *=<\/span> 2<\/span> print<\/span>(<\/span>num)<\/span> # 22<\/span> num %=<\/span> 3<\/span> print<\/span>(<\/span>num)<\/span> # 1<\/span> num **=<\/span> 2<\/span> print<\/span>(<\/span>num)<\/span> # 1<\/span> <\/code><\/pre>\n

8.\u8fd0\u7b97\u7b26\u7684\u4f18\u5148\u7ea7<\/h2>\n

1\uff09\u6570\u5b66\u8fd0\u7b97\u7b26>\u6bd4\u8f83\u8fd0\u7b97\u7b26>\u903b\u8f91\u8fd0\u7b97\u7b26>\u8d4b\u503c\u8fd0\u7b97\u7b26\uff08\u6700\u4f4e\uff09\uff1b<\/p>\n

2\uff09** > *,\/,\/\/,% > +,-\uff1b<\/p>\n

3\uff09and > or;<\/p>\n

4)\u6709\u62ec\u53f7\u5148\u7b97\u62ec\u53f7\u91cc\u9762\u7684\uff08\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"python\u8f93\u51fa\u542b\u53d8\u91cf\u7684\u53e5\u5b50_python\u8f93\u51fa\u8ba1\u7b97\u7ed3\u679c\u7684\u529f\u80fd\u51fd\u6570python\u57fa\u7840\u8bed\u6cd5\uff1a\u6ce8\u91ca\uff0c\u6807\u8bc6\u7b26\uff0c\u5173\u952e\u5b57\uff0c\u8f93\u5165\u548c\u8f93\u51fa\uff0c\u53d8\u91cf\u4e0e\u8fd0\u7b97\u7b26_pyt...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7760"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=7760"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7760\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=7760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=7760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=7760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}