{"id":695,"date":"2023-11-18T09:01:01","date_gmt":"2023-11-18T01:01:01","guid":{"rendered":""},"modified":"2023-11-18T09:01:01","modified_gmt":"2023-11-18T01:01:01","slug":"10 \u4e2a\u6709\u7528\u7684 Python \u5b57\u7b26\u4e32\u51fd\u6570","status":"publish","type":"post","link":"https:\/\/mushiming.com\/695.html","title":{"rendered":"10 \u4e2a\u6709\u7528\u7684 Python \u5b57\u7b26\u4e32\u51fd\u6570"},"content":{"rendered":"

\u8fd9\u662f\u6211\u53c2\u4e0e8\u6708\u66f4\u6587\u6311\u6218\u7684\u7b2c11\u5929\uff0c\u6d3b\u52a8\u8be6\u60c5\u67e5\u770b\uff1a8\u6708\u66f4\u6587\u6311\u6218<\/p>\n

\ud83d\udc53 \u524d\u8a00<\/h1>\n
\n

Python \u5b57\u7b26\u4e32\u662f\u4e00\u4e2a\u5185\u7f6e\u7684\u7c7b\u578b\u5e8f\u5217\u3002\u5b57\u7b26\u4e32\u53ef\u7528\u4e8e\u5904\u7406 Python \u4e2d\u7684\u6587\u672c\u6570\u636e\u3002Python \u5b57\u7b26\u4e32\u662f Unicode \u70b9\u7684\u4e0d\u53ef\u53d8\u5e8f\u5217\u3002\u5728 Python \u4e2d\u521b\u5efa\u5b57\u7b26\u4e32\u662f\u6700\u7b80\u5355\u6613\u7528\u7684\u3002\u8981\u5728 Python \u4e2d\u521b\u5efa\u5b57\u7b26\u4e32\uff0c\u6211\u4eec\u53ea\u9700\u5c06\u6587\u672c\u62ec\u5728\u5355\u5f15\u53f7\u548c\u53cc\u5f15\u53f7\u4e2d\u3002Python \u5bf9\u5355\u5f15\u53f7\u548c\u53cc\u5f15\u53f7\u8bed\u53e5\u7684\u5904\u7406\u65b9\u5f0f\u76f8\u540c\u3002\u56e0\u6b64\uff0c\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8ba8\u8bba Python \u4e2d\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c\u6570\u636e\u64cd\u4f5c\u7684\u4e00\u4e9b\u91cd\u8981\u4e14\u6709\u7528\u7684\u5b57\u7b26\u4e32\u51fd\u6570\uff0c\u4e3b\u8981\u7528\u4e8e\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u3002<\/p>\n<\/blockquote>\n

\u6211\u4eec\u5c06\u5728\u672c\u6587\u4e2d\u8ba8\u8bba\u7684 Python \u5b57\u7b26\u4e32\u51fd\u6570\u5982\u4e0b\uff1a<\/strong><\/p>\n

\ud83d\ude0a \u4e00\u3001capitalize() \u51fd\u6570<\/h1>\n

capitalize() \u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5176\u4e2d\u7b2c\u4e00\u4e2a\u5b57\u7b26\u662f\u5927\u5199\u3002<\/strong><\/p>\n

\u8bed\u6cd5\uff1astring.capitalize()<\/code><\/p>\n

\u793a\u4f8b 1\uff1a\u4f7f\u7ed9\u5b9a\u53e5\u5b50\u4e2d\u7684\u7b2c\u4e00\u4e2a\u5b57\u6bcd\u5927\u5199<\/p>\n

string = \"CSDN is the largest developer community in China\"<\/span> \nprint<\/span>(string.capitalize())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

Csdn is<\/span> the largest developer community in<\/span> china\n<\/code><\/pre>\n

\u793a\u4f8b 2\uff1a\u5982\u679c\u7b2c\u4e00\u4e2a\u5b57\u7b26\u662f\u6570\u5b57\u800c\u4e0d\u662f\u5b57\u7b26\u4f1a\u53d1\u751f\u4ec0\u4e48<\/p>\n

string = '3th CSDN force plan activities are very good'<\/span> \nprint<\/span>(string.capitalize())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

3th csdn force plan activities are very good\n<\/code><\/pre>\n
\n

\ud83d\udc8c \u4e8c\u3001lower( ) \u51fd\u6570<\/h1>\n

lower() \u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5176\u4e2d\u7ed9\u5b9a\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u5b57\u7b26\u90fd\u662f\u5c0f\u5199\u3002\u8fd9\u4e2a\u51fd\u6570\u5bf9\u7b26\u53f7\u548c\u6570\u5b57\u6ca1\u6709\u4efb\u4f55\u4f5c\u7528\uff0c\u5373\uff0c\u53ea\u662f\u5ffd\u7565\u4e86\u8fd9\u4e9b\u4e1c\u897f\u3002<\/strong><\/p>\n

\u8bed\u6cd5\uff1astring.lower()<\/code><\/p>\n

\u793a\u4f8b 1\uff1a\u5c0f\u5199\u7ed9\u5b9a\u5b57\u7b26\u4e32<\/p>\n

string = \"Haiyong is an excellent CSDN blogger\"<\/span> \nprint<\/span>(string.lower())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

haiyong is<\/span> an excellent csdn blogger\n<\/code><\/pre>\n

\u793a\u4f8b 2\uff1a \u5982\u679c\u6709\u6570\u5b57\u800c\u4e0d\u662f\u5b57\u7b26\u4f1a\u53d1\u751f\u4ec0\u4e48<\/p>\n

string = '3th CSDN force plan activities are very good'<\/span> \nprint<\/span>(string.lower())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

3th csdn force plan activities are very good\n<\/code><\/pre>\n
\n

\u23f0 \u4e09\u3001title( ) \u51fd\u6570<\/h1>\n

title() \u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5176\u4e2d\u5b57\u7b26\u4e32\u4e2d\u6bcf\u4e2a\u5355\u8bcd\u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26\u90fd\u662f\u5927\u5199\u3002\u5b83\u5c31\u50cf\u6807\u9898\u6216\u6807\u9898\u3002<\/strong><\/p>\n

\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u7684\u4efb\u4f55\u5355\u8bcd\u5305\u542b\u6570\u5b57\u6216\u7b26\u53f7\uff0c\u5219\u6b64\u51fd\u6570\u5c06\u5176\u540e\u7684\u7b2c\u4e00\u4e2a\u5b57\u6bcd\u8f6c\u6362\u4e3a\u5927\u5199\u3002<\/strong><\/p>\n

\u8bed\u6cd5\uff1astring.title()<\/code><\/p>\n

\u793a\u4f8b 1\uff1a\u4f7f\u6bcf\u4e2a\u5355\u8bcd\u7684\u7b2c\u4e00\u4e2a\u5b57\u6bcd\u5927\u5199<\/p>\n

string = \"The blog you are reading will be on the hot list\"<\/span> \nprint<\/span>(string.title())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

The Blog You Are Reading Will Be On The Hot List<\/span>\n<\/code><\/pre>\n

\u793a\u4f8b 2\uff1a\u5982\u679c\u6709\u6570\u5b57\u800c\u4e0d\u662f\u5b57\u7b26\u4f1a\u53d1\u751f\u4ec0\u4e48<\/p>\n

string = '10 useful Python string functions you must know'<\/span> \nprint<\/span>(string.title())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

10<\/span> Useful Python String Functions You Must Know\n<\/code><\/pre>\n
\n

\ud83e\uddff \u56db\u3001casefold() \u51fd\u6570<\/h1>\n

casefold() \u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5176\u4e2d\u6240\u6709\u5b57\u7b26\u90fd\u662f\u5c0f\u5199\u3002<\/strong><\/p>\n

\u8fd9\u4e2a\u51fd\u6570\u7c7b\u4f3c\u4e8elower()\u51fd\u6570\uff0c\u4f46\u662fcasefold()\u51fd\u6570\u66f4\u5f3a\u5927\uff0c\u66f4\u6fc0\u8fdb\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u5c06\u66f4\u591a\u7684\u5b57\u7b26\u8f6c\u6362\u6210\u5c0f\u5199\uff0c\u5e76\u4e14\u5728\u6bd4\u8f83\u4e24\u4e2a\u5b57\u7b26\u4e32\u65f6\u4f1a\u627e\u5230\u66f4\u591a\u7684\u5339\u914d\u9879\uff0c\u5e76\u4e14\u90fd\u4f7f\u7528casefold()\u8fdb\u884c\u8f6c\u6362 \u529f\u80fd\u3002<\/strong><\/p>\n

\u8bed\u6cd5\uff1astring.casefold()<\/code><\/p>\n

\u793a\u4f8b 1\uff1a\u5c06\u7ed9\u5b9a\u7684\u5b57\u7b26\u4e32\u53d8\u4e3a\u5c0f\u5199<\/p>\n

string = \"CSDN is the largest developer community in China\"<\/span> \nprint<\/span>(string.casefold())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

csdn is<\/span> the largest developer community in<\/span> china\n<\/code><\/pre>\n

\u793a\u4f8b 2\uff1a\u5982\u679c\u6709\u6570\u5b57\u800c\u4e0d\u662f\u5b57\u7b26\u4f1a\u53d1\u751f\u4ec0\u4e48<\/p>\n

string = '10 useful Python string functions you must know'<\/span> \nprint<\/span>(string.casefold())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

10<\/span> useful python string functions you must know\n<\/code><\/pre>\n
\n

\ud83c\udfc0 \u4e94\u3001upper( ) \u51fd\u6570<\/h1>\n

upper() \u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5176\u4e2d\u7ed9\u5b9a\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u5b57\u7b26\u90fd\u4e3a\u5927\u5199\u3002\u8fd9\u4e2a\u51fd\u6570\u5bf9\u7b26\u53f7\u548c\u6570\u5b57\u6ca1\u6709\u4efb\u4f55\u4f5c\u7528\uff0c\u5373\uff0c\u53ea\u662f\u5ffd\u7565\u4e86\u8fd9\u4e9b\u4e1c\u897f\u3002<\/strong><\/p>\n

\u8bed\u6cd5\uff1astring.upper()<\/code><\/p>\n

\u793a\u4f8b 1\uff1a\u7ed9\u5b9a\u5b57\u7b26\u4e32\u7684\u5927\u5199<\/p>\n

string = \"CSDN is the largest developer community in China\"<\/span> \nprint<\/span>(string.upper())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

CSDN IS THE LARGEST DEVELOPER COMMUNITY IN CHINA\n<\/code><\/pre>\n

\u793a\u4f8b 2\uff1a\u5982\u679c\u6709\u6570\u5b57\u800c\u4e0d\u662f\u5b57\u7b26\u4f1a\u53d1\u751f\u4ec0\u4e48<\/p>\n

string = '10 useful Python string functions you must know'<\/span> \nprint<\/span>(string.upper())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

10<\/span> USEFUL PYTHON STRING FUNCTIONS YOU MUST KNOW\n<\/code><\/pre>\n
\n

\ud83c\udfc6 \u516d\u3001count( ) \u51fd\u6570<\/h1>\n

count() \u51fd\u6570\u67e5\u627e\u6307\u5b9a\u503c\uff08\u7531\u7528\u6237\u7ed9\u5b9a\uff09\u5728\u7ed9\u5b9a\u5b57\u7b26\u4e32\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u3002<\/strong><\/p>\n

\u8bed\u6cd5\uff1a string .count( value, start, end )<\/code><\/p>\n

\u793a\u4f8b 1\uff1a\u8fd4\u56de\u503c\u201cCSDN \u201d\u5728\u5b57\u7b26\u4e32\u4e2d\u51fa\u73b0\u7684\u6b21\u6570<\/p>\n

string = \"CSDN is the largest developer community in China\"<\/span> \nprint<\/span>(string.count(\"CSDN \"<\/span>))\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

1<\/span>\n<\/code><\/pre>\n

\u793a\u4f8b 2\uff1a \u8fd4\u56de\u503c\u201cCSDN \u201d\u5728\u5b57\u7b26\u4e32\u4e2d \u4ece\u4f4d\u7f6e 8 \u5230 16 \u51fa\u73b0\u7684\u6b21\u6570<\/p>\n

string = \"CSDN is the largest developer community in China\"<\/span> \nprint<\/span>(string.count(\"analytics\"<\/span>, 8<\/span>, 16<\/span>))\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

0<\/span>\n<\/code><\/pre>\n
\n

\ud83c\udfbb \u4e03\u3001find( ) \u51fd\u6570<\/h1>\n

find() \u51fd\u6570\u67e5\u627e\u6307\u5b9a\u503c\u7684\u7b2c\u4e00\u6b21\u51fa\u73b0\u3002\u5982\u679c\u5728\u8be5\u5b57\u7b26\u4e32\u4e2d\u627e\u4e0d\u5230\u8be5\u503c\uff0c\u5219\u8fd4\u56de -1\u3002<\/strong><\/p>\n

find() \u51fd\u6570\u4e0e index() \u51fd\u6570\u51e0\u4e4e\u76f8\u540c\uff0c\u4f46\u552f\u4e00\u7684\u533a\u522b\u662f index() \u51fd\u6570\u5728\u627e\u4e0d\u5230\u503c\u65f6\u5f15\u53d1\u5f02\u5e38\u3002<\/strong><\/p>\n

\u8bed\u6cd5\uff1astring.find(value, start, end)<\/code><\/p>\n

\u793a\u4f8b 1\uff1a\u6587\u672c\u4e2d\u5b57\u6bcd\u201cd\u201d\u7b2c\u4e00\u6b21\u51fa\u73b0\u7684\u4f4d\u7f6e\u662f\u4ec0\u4e48\uff1f<\/p>\n

string = \"CSDN is the largest developer community in China\"<\/span> \nprint<\/span>(string.find(\"d\"<\/span>))\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

20<\/span>\n<\/code><\/pre>\n

\u793a\u4f8b 2\uff1a\u4ec5\u5728\u4f4d\u7f6e 5 \u548c 16 \u4e4b\u95f4\u641c\u7d22\u65f6\uff0c\u5b57\u6bcd\u201cd\u201d\u5728\u6587\u672c\u4e2d\u7684\u54ea\u4e2a\u4f4d\u7f6e\u9996\u6b21\u51fa\u73b0\uff1f<\/p>\n

string = \"CSDN is the largest developer community in China\"<\/span> \nprint<\/span>(string.find(\"d\"<\/span>, 12<\/span>, 22<\/span>))\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

20<\/span>\n<\/code><\/pre>\n

\u793a\u4f8b 3\uff1a\u5982\u679c\u627e\u4e0d\u5230\u8be5\u503c\uff0c\u5219 find() \u51fd\u6570\u8fd4\u56de -1\uff0c\u4f46 index() \u51fd\u6570\u4f1a\u5f15\u53d1\u5f02\u5e38<\/p>\n

string = \"CSDN is the largest developer community in China\"<\/span> \nprint<\/span>(string.find(\"d\"<\/span>, 5<\/span>, 10<\/span>))\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

-1<\/span>\n<\/code><\/pre>\n
\n

\ud83c\udfa5 \u516b\u3001replace() \u51fd\u6570<\/h1>\n

replace() \u51fd\u6570\u7528\u53e6\u4e00\u4e2a\u6307\u5b9a\u7684\u77ed\u8bed\u66ff\u6362\u6307\u5b9a\u7684\u77ed\u8bed\u3002<\/strong><\/p>\n

\u6ce8\u610f\uff1a\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u4efb\u4f55\u5176\u4ed6\u5185\u5bb9\uff0c\u6240\u6709\u51fa\u73b0\u7684\u6307\u5b9a\u77ed\u8bed\u90fd\u5c06\u88ab\u66ff\u6362\u3002<\/strong><\/p>\n

\u8bed\u6cd5\uff1a string .replace( oldvalue, newvalue, count )<\/code><\/p>\n

\u793a\u4f8b 1\uff1a\u66ff\u6362\u6240\u6709\u51fa\u73b0\u7684\u5355\u8bcd\u201cdeveloper \u201d<\/p>\n

string = \"CSDN is the largest developer community in China\"<\/span> \nprint<\/span>(string.replace(\"largest \"<\/span>, \"best \"<\/span>))\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

CSDN is<\/span> the best developer community in<\/span> China\n<\/code><\/pre>\n

\u793a\u4f8b 2\uff1a\u4ec5\u66ff\u6362\u7b2c\u4e00\u6b21\u51fa\u73b0\u7684\u5355\u8bcd\u201cdeveloper \u201d<\/p>\n

string = \"CSDN is China's largest developer community suitabsle for developer to learn\"<\/span> \nprint<\/span>(string.replace(\"developer \"<\/span>, \"developers \"<\/span>, 1<\/span>))\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

CSDN is<\/span> China's largest developers community suitabsle for developer to learn <\/span><\/code><\/pre>\n
\n

\ud83c\udf56 \u4e5d\u3001swapcase( ) \u51fd\u6570<\/h1>\n

swapcase() \u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5176\u4e2d\u6240\u6709\u5927\u5199\u5b57\u6bcd\u90fd\u662f\u5c0f\u5199\u5b57\u6bcd\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002<\/strong><\/p>\n

\u8bed\u6cd5\uff1astring.swapcase()<\/code><\/p>\n

\u793a\u4f8b 1\uff1a\u5c06\u5c0f\u5199\u5b57\u6bcd\u53d8\u4e3a\u5927\u5199\uff0c\u5c06\u5927\u5199\u5b57\u6bcd\u53d8\u4e3a\u5c0f\u5199<\/p>\n

string = \"CSDN is the largest developer community in China\"<\/span> \nprint<\/span>(string.swapcase())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

csdn IS THE LARGEST DEVELOPER COMMUNITY IN cHINA\n<\/code><\/pre>\n

\u793a\u4f8b 2\uff1a\u5982\u679c\u6709\u6570\u5b57\u800c\u4e0d\u662f\u5b57\u7b26\u4f1a\u53d1\u751f\u4ec0\u4e48<\/p>\n

string = '3th CSDN force plan activities are very good'<\/span> \nprint<\/span>(string.swapcase())\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

3TH csdn FORCE PLAN ACTIVITIES ARE VERY GOOD\n<\/code><\/pre>\n
\n

\u2728 \u5341\u3001join () \u51fd\u6570<\/h1>\n

join() \u51fd\u6570\u83b7\u53d6\u53ef\u8fed\u4ee3\u5bf9\u8c61\u4e2d\u7684\u6240\u6709\u9879\u5e76\u5c06\u5b83\u4eec\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u6211\u4eec\u5fc5\u987b\u6307\u5b9a\u4e00\u4e2a\u5b57\u7b26\u4e32\u4f5c\u4e3a\u5206\u9694\u7b26\u3002<\/strong><\/p>\n

\u8bed\u6cd5\uff1astring.join(iterable)<\/code><\/p>\n

\u793a\u4f8b 1\uff1a\u5c06\u7ed9\u5b9a\u5143\u7ec4\u4e2d\u7684\u6240\u6709\u9879\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u4f7f\u7528 #\uff08hashtag\uff09\u5b57\u7b26\u4f5c\u4e3a\u5206\u9694\u7b26<\/p>\n

myTuple = (\"Computer Scientist\"<\/span>, \"Programming Learning\"<\/span>, \"Python Programming\"<\/span>) \nx = \" # \"<\/span>.join(myTuple) \nprint<\/span>(x)\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

Computer Scientist # Programming Learning # Python Programming<\/span>\n<\/code><\/pre>\n

\u793a\u4f8b2\uff1a\u5c06\u7ed9\u5b9a\u5b57\u5178\u4e2d\u7684\u6240\u6709\u9879\u76ee\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u4f7f\u7528\u5355\u8bcd\u201cTEST\u201d\u4f5c\u4e3a\u5206\u9694\u7b26<\/p>\n

myDict = {\"name\"<\/span>: \"CSDN\"<\/span>, \"country\"<\/span>: \"China\"<\/span>, \"Technology\"<\/span>: \"Python Programming\"<\/span>} \nmySeparator = \"TEST\"<\/span> \nx = mySeparator.join(myDict) \nprint<\/span>(x)\n<\/code><\/pre>\n

\u8f93\u51fa\uff1a<\/p>\n

nameTESTcountryTESTTechnology\n<\/code><\/pre>\n
\n

\ud83d\ude0a \u7ed3\u5c3e\u60f3\u8bf4\u7684<\/h1>\n

\u6211\u5e0c\u671b\u4f60\u559c\u6b22\u8fd9\u7bc7\u6587\u7ae0\u3002\u5982\u679c\u4f60\u559c\u6b22\u5b83\uff0c\u4e5f\u5206\u4eab\u7ed9\u4f60\u7684\u670b\u53cb\u3002\u6709\u672a\u63d0\u53ca\u7684\u5185\u5bb9\u6216\u60f3\u5206\u4eab\u60a8\u7684\u60f3\u6cd5\u8bf7\u968f\u65f6\u5728\u4e0b\u9762\u53d1\u8868\u8bc4\u8bba\uff0c\u6211\u4f1a\u5c3d\u5feb\u56de\u590d\u60a8\u3002\ud83d\ude09<\/p>\n

\n

\u6211\u5df2\u7ecf\u5199\u4e86\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\u7684\u6280\u672f\u535a\u5ba2\uff0c\u5e76\u4e14\u4e3b\u8981\u901a\u8fc7\u6398\u91d1\u53d1\u8868\uff0c\u8fd9\u662f\u6211\u7684\u4e00\u7bc7python\u57fa\u7840\u6559\u7a0b\u3002\u6211\u559c\u6b22\u901a\u8fc7\u6587\u7ae0\u5206\u4eab\u6280\u672f\u4e0e\u5feb\u4e50\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u6211\u7684\u535a\u5ba2\uff1a \u6398\u91d1-\u6d77\u62e5 \u4ee5\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u3002\u5e0c\u671b\u4f60\u4eec\u4f1a\u559c\u6b22\uff01<\/p>\n<\/blockquote>\n

\u5982\u679c\u4f60\u771f\u7684\u4ece\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u5b66\u5230\u4e86\u4e00\u4e9b\u65b0\u4e1c\u897f\uff0c\u559c\u6b22\u5b83\uff0c\u6536\u85cf\u5b83\u5e76\u4e0e\u4f60\u7684\u5c0f\u4f19\u4f34\u5206\u4eab\u3002\ud83e\udd17\u6700\u540e\uff0c\u4e0d\u8981\u5fd8\u4e86\u2764\u6216\ud83d\udcd1\u652f\u6301\u4e00\u4e0b\u54e6<\/p>\n","protected":false},"excerpt":{"rendered":"10 \u4e2a\u6709\u7528\u7684 Python \u5b57\u7b26\u4e32\u51fd\u6570\ud83d\udc53 \u524d\u8a00 \u6211\u4eec\u5c06\u5728\u672c\u6587\u4e2d\u8ba8\u8bba\u7684 Python \u5b57\u7b26\u4e32\u51fd\u6570\u5982\u4e0b\uff1a \ud83d\ude0a \u4e00\u3001capitalize() \u51fd\u6570 capitalize()...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/695"}],"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=695"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/695\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}