{"id":109220,"date":"2026-09-23T17:48:56","date_gmt":"2026-09-23T09:48:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/109220.html"},"modified":"2026-09-23T17:48:56","modified_gmt":"2026-09-23T09:48:56","slug":"python%e5%ad%97%e7%ac%a6%e7%b1%bb%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/109220.html","title":{"rendered":"python\u5b57\u7b26\u7c7b\u578b"},"content":{"rendered":"<p>python\u4e2d\u7684\u5b57\u7b26\u7c7b<br \/>\n\u4e00\u3001\u7d22\u5f15<br \/>\n\u4f7f\u7528\u7d22\u5f15\u6765\u8bbf\u95ee\u5e8f\u5217\u4e2d\u7684\u5143\u7d20<br \/>\n\u6b63\u5411\u7d22\u5f15&#xff1a;0123456<br \/>\n\u8d1f\u5411\u7d22\u5f15&#xff1a; \u00a0-3 -2-1<\/p>\n<p>\u4e8c\u3001\u6839\u636e\u7d22\u5f15\u5207\u7247<br \/>\n\u516c\u5f0f&#xff1a;\u5f00\u59cb\u503c&#xff0c;\u7ed3\u675f\u503c&#xff0c;\u6b65\u957f<br \/>\n\u5305\u542b\u5f00\u59cb\u503c&#xff0c;\u4e0d\u5305\u542b\u7ed3\u675f\u503c&#xff0c;<br \/>\n\u7d22\u5f15\u4ece0\u5f00\u59cb<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nstr1&#061;&#034;abcdefghijk&#034;<br \/>\n#\u6b63\u5411\u7d22\u5f15&#xff1a;01234567<br \/>\nprint(str1[0:1]) #0\u7d22\u5f15&#xff0c;\u5305\u542b\u5f00\u59cb\u503c&#xff0c;\u4e0d\u5305\u542b\u7ed3\u675f\u503c<br \/>\nprint(str1[0:3]) #abc 0\u662f\u5f00\u59cb\u503c&#xff0c;3\u662f\u7ed3\u675f\u503c<br \/>\nprint(str1[-1:-3:-1]) #-1\u5f00\u59cb\u503c&#xff0c;-3\u7ed3\u675f\u503c&#xff0c;-1\u53cd\u5411<br \/>\nprint(str1[-3:-1]) #ij \u00a0#-3\u5f00\u59cb\u503c&#xff0c;-1\u7ed3\u675f\u503c<br \/>\nprint(str1[2:]) #cdefghijk \u00a02\u5f00\u59cb\u503c&#xff0c;\u7a7a\u683c&#xff0c;\u4ee3\u8868\u6240\u6709<br \/>\nprint(str1[:5]) #abcde \u00a0\u5f00\u59cb\u503c\u7a7a&#xff0c;\u6240\u6709\u503c&#xff0c;5\u7ed3\u675f\u503c<br \/>\nprint(str1[1:6:2]) #bdf \u00a01\u5f00\u59cb\u503c&#xff0c;6\u662f\u7ed3\u675f\u503c&#xff0c;2\u6b65\u957f&#xff08;\u95f4\u9694&#xff09;<br \/>\nprint(str1[::3]) #adgj \u00a0\u95f4\u96943<br \/>\nprint(str1[:])##abcdefghijk \u663e\u793a\u6240\u6709\u5185\u5bb9<br \/>\nprint(str1[::-1]) #kjihgfedcba \u53cd\u8f6c<\/p>\n<p>\u4e09\u3001\u5b57\u7b26\u7c7b\u578b<br \/>\nstr \u5b57\u7b26\u7c7b\u578b<br \/>\nstr2&#061;&#034;abcefghakla2masz&#034;<br \/>\nstr3&#061;&#034;ABC&#034;<br \/>\nstr4&#061;&#034;asdf&#034;<br \/>\nstr5&#061;&#034;1345&#034;<br \/>\nstr6&#061;&#034;Anmmm&#034;<br \/>\n# print(str2.capitalize()) #Abcefg hijklmn \u9996\u4e2a\u5b57\u6bcd\u5927\u5199<br \/>\n# print(str2.title()) #Abcefg Hijklmn #\u9996\u4e2a\u5b57\u6bcd\u5927\u5199&#xff0c;\u6bcf\u4e2a\u5b57\u6bcd\u5927\u5199<br \/>\n# print(str2.count(&#034;a&#034;)) # 2 \u00a0\u7edf\u8ba1\u5b57\u7b26\u4e2a\u6570<br \/>\n# print(&#034;*&#034;.join(str2)) #\u628a\u96c6\u5408\u4e2d\u7684\u5b57\u7b26\u6309\u81ea\u5b9a\u4e49\u7684\u5206\u9694\u7b26\u8fde\u63a5\u5728\u4e00\u8d77<br \/>\n# print(str2.split(&#034;h&#034;)) #\u628a\u5b57\u7b26\u4e32\u901a\u8fc7\u6307\u5b9a\u6807\u8bc6\u7b26\u8fdb\u884c\u5206\u5272<br \/>\n# print(str2.strip(&#034;a&#034;)) #\u5220\u9664\u5b57\u7b26\u4e32\u5f00\u5934\u548c\u7ed3\u5c3e\u6709a\u6216b\u7684\u5b57\u7b26 bcefg hijklmn<br \/>\n# print(str2.rstrip(&#034;a&#034;)) #\u5220\u9664\u5b57\u7b26\u4e32\u7ed3\u5c3e\u6709a\u5e8f\u5217\u5b57\u7b26abcefg hijklmn<br \/>\n# print(str2.lstrip(&#034;a&#034;)) #\u5220\u9664\u5b57\u7b26\u4e32\u5f00\u5934\u6709ab\u5e8f\u5217bcefg hijklmna<br \/>\n# print(str2.startswith(&#034;a&#034;)) #\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4ee5\u4ec0\u4e48\u5f00\u59cb #True<br \/>\n# print(str2.startswith(&#034;b&#034;)) #\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4ee5\u4ec0\u4e48\u5f00\u59cb False<br \/>\n# print(str2.endswith(&#034;n&#034;)) #True\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4ee5\u4ec0\u4e48\u7ed3\u675f<br \/>\n# print(str2.endswith(&#034;m&#034;)) #False\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4ee5\u4ec0\u4e48\u7ed3\u675f<br \/>\n# print(str2.find(&#034;a&#034;)) #0\u663e\u793a\u67e5\u627e\u5230\u7684\u7d22\u5f15\u4f4d&#xff0c;\u5de6\u8fb9\u5f00\u59cb\u67e5&#xff0c;\u627e\u5230\u5c31\u505c\u6b62\u67e5\u627e<br \/>\n# print(str2.find(&#034;x&#034;)) #-1 \u67e5\u627e\u4e0d\u5b58\u5728\u663e\u793a-1<br \/>\n# print(str2.rfind(&#034;a&#034;)) #11 \u00a0\u7d22\u5f15\u4f4d&#xff0c;\u53f3\u8fb9\u5f00\u59cb\u67e5&#xff0c;\u627e\u5230\u5c31\u505c\u6b62\u67e5\u627e<br \/>\n# print(str2.rfind(&#034;p&#034;)) #-1 \u67e5\u627e\u4e0d\u5b58\u5728\u663e\u793a-1<br \/>\n# print(str2.replace(&#034;a&#034;,&#034;1&#034;)) #1bcefghijkl1mn \u5c06\u6240\u6709\u6307\u5b9a\u5b57\u7b26\u66ff\u6362<br \/>\n# print(str2.replace(&#034;a&#034;,&#034;1&#034;,2)) #1bcefgh1klamasz \u6307\u5b9a\u66ff\u6362\u5b57\u7b26\u6b21\u6570<br \/>\n# print(str3.lower()) #abc\u65b9\u6cd5\u8f6c\u6362\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u5927\u5199\u5b57\u7b26\u4e3a\u5c0f\u5199<br \/>\n# print(str4.upper())#ASDF \u00a0\u5c06\u5c0f\u5199\u8f6c\u6362\u6210\u5927\u5199<br \/>\n# print(str1.isdigit()) #False \u5224\u65ad\u5168\u6570\u5b57<br \/>\n# print(str5.isdigit()) #True \u5224\u65ad\u5168\u6570\u5b57<br \/>\n# print(str1.isalnum()) #True\u5224\u65ad\u5b57\u7b26\u4e32\u5f53\u4e2d\u662f\u5426\u5168\u90fd\u4e3a\u6570\u5b57&#xff0c;\u5168\u4e3a\u5b57\u6bcd&#xff0c;\u6216\u8005\u6570\u5b57\u5b57\u6bcd\u7ec4\u5408<br \/>\nprint(str2.isalpha()) #False\u5224\u65ad\u662f\u5426\u7eaf\u5b57\u6bcd<br \/>\nprint(str6.istitle()) #True\u5224\u65ad\u5b57\u7b26\u4e32\u4e2d\u9996\u5b57\u6bcd\u662f\u5426\u4e3a\u5927\u5199&#xff0c;\u5176\u4ed6\u662f\u5426\u4e3a\u5c0f\u5199&#xff0c;\u5176\u4ed6\u4e0d\u4e3a\u5c0f\u5199\u5219\u4e3a\u5426<br \/>\nprint(str3.isupper()) #True\u5224\u65ad\u662f\u5426\u7eaf\u5927\u5199<br \/>\nprint(str3.islower()) #False \u5224\u65ad\u662f\u5426\u7eaf\u5c0f\u5199<\/p>\n<p>\u7ec3\u4e60\u9898&#xff1a;<br \/>\n\u628a\u5b57\u7b26\u4e32user_controller\u8f6c\u6362\u4e3a\u9a7c\u5cf0\u547d\u540dUserController\u5927\u9a7c\u5cf0\u5728java\u7528\u4f5c\u53d8\u91cf\u547d\u540d<br \/>\n&#xff08;\u524d\u82f1\u6587\u4e3a\u5927\u5199\u540e\u82f1\u6587\u4e3a\u5c0f\u5199&#xff09; \u5c0f\u9a7c\u5cf0&#xff1a;\u4f5c\u4e3a\u53d8\u91cf\u547d\u540d<br \/>\n\u65b9\u6cd51&#xff1a;<br \/>\nstr8&#061;&#034;user_controller&#034;<br \/>\na&#061;str8.title()<br \/>\nb&#061;a.split(&#034;_&#034;)<br \/>\nprint(&#034;&#034;.join(b))<\/p>\n<p>\u65b9\u6cd52&#xff1a;<br \/>\n# a&#061;str8.split(&#034;_&#034;)<br \/>\n# b&#061;&#034;&#034;<br \/>\n# print(a)<br \/>\n# for i in \u00a0a:<br \/>\n# \u00a0 \u00a0 b&#061;b&#043;str(i).capitalize()<br \/>\n# print(b) #UserController<br \/>\n\u56db\u3001\u5217\u8868<br \/>\n\u5b57\u7b26\u7c7b\u578b&#xff1a;list<br \/>\n\u7b26\u53f7&#xff1a;\u3010\u3011<br \/>\n\u5b9a\u4e49&#xff1a;\u5217\u8868\u597d\u4f3c\u4e00\u7ec4\u6709\u5e8f\u5b58\u50a8\u7684\u6570\u636e&#xff0c;\u4e5f\u662fpython\u5e38\u89c1\u7684\u5e8f\u5217\u503c&#xff0c;\u5e8f\u5217\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u90fd\u5206\u914d\u4e00\u4e2a\u7d22\u5f15&#xff0c;<br \/>\n\u5b9a\u4e49\u5217\u8868\u7684\u65b9\u6cd5&#xff1a;<br \/>\n\u65b9\u6cd5\u4e00&#xff1a;\u901a\u8fc7list\u5b9a\u4e49<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\na&#061;&#034;a1234&#034;<br \/>\nprint(type(a)) #&lt;class &#039;str&#039;&gt;<br \/>\ns&#061;list(a)<br \/>\nprint(s) #[&#039;a&#039;, &#039;1&#039;, &#039;2&#039;, &#039;3&#039;, &#039;4&#039;]<br \/>\nprint(type(s)) #&lt;class &#039;list&#039;&gt;<\/p>\n<p>\u65b9\u6cd5\u4e8c&#xff1a;\u901a\u8fc7\u3010\u3011\u5b9a\u4e49<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5]<br \/>\nprint(type(list1))<br \/>\n1\u3001\u5e38\u7528\u7684\u51fd\u6570<br \/>\n&#xff08;1&#xff09;\u6dfb\u52a0\u51fd\u6570 &#xff0c;\u901a\u8fc7\u7d22\u5f15\u5207\u7247<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5]<br \/>\nlist1[2]&#061;&#034;a&#034; \u00a0#\u63d2\u5165\u6570\u636e&#xff0c;\u5c06\u539f\u6765\u6570\u636e\u8986\u76d6<br \/>\nprint(list1)<br \/>\n&#xff08;2&#xff09;addend\u6dfb\u52a0&#xff08;\u9ed8\u8ba4\u6dfb\u52a0\u5728\u672b\u5c3e&#xff09;<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5]<br \/>\nlist1.append(&#034;s&#034;) #[1, 2, 3, 4, 5, &#039;s&#039;]<br \/>\nprint(list1)<br \/>\n&#xff08;3&#xff09;insert \u63d2\u5165&#xff08;\u6839\u636e\u7d22\u5f15\u63d2\u5165\u5185\u5bb9&#xff0c;\u539f\u6765\u7684\u6570\u636e\u5411\u540e\u79fb\u52a8\u4e00\u4f4d&#xff09;<br \/>\nlist1&#061;[1,2,3,4,5]<br \/>\nlist1.insert(2,&#034;a&#034;)<br \/>\nprint(list1)<br \/>\n&#xff08;4&#xff09;extend \u51fd\u6570&#xff1a;\u94fe\u63a5\u4e24\u4e2a\u5217\u8868<br \/>\nlist1&#061;[1,2,3,4,5]<br \/>\nlist2&#061;[6,7,8,9]<br \/>\nlist1.extend(list2)<br \/>\nprint(list1)#[1, 2, 3, 4, 5, 6, 7, 8, 9]<br \/>\n&#xff08;5&#xff09;romove \u5220\u9664\u51fd\u6570&#xff08;\u6839\u636e\u5143\u7d20\u5220\u9664&#xff09;<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5]<br \/>\nlist1.remove(1)<br \/>\nprint(list1) #[2, 3, 4, 5]<br \/>\n\u6848\u4f8b2&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\nlist1.remove(1)<br \/>\nprint(list1) #[2, 3, 4, 5, 1, 1]\u00a0<br \/>\n\u591a\u4e2a\u5143\u7d20\u65f6\u53ea\u5220\u9664\u524d\u4e00\u4e2a<br \/>\n&#xff08;6&#xff09;del\u6839\u636e\u7d22\u5f15\u5220\u9664\u00a0<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\ndel list1[2]<br \/>\nprint(list1)<br \/>\n&#xff08;7&#xff09;pop\u5220\u9664 &#xff08;\u9ed8\u8ba4\u5220\u9664\u540e\u4e00\u4f4d&#xff09;<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\nlist1.pop() \u00a0#\u9ed8\u8ba4\u5220\u9664\u6700\u540e\u4e00\u4f4d<br \/>\nprint(list1) #[1, 2, 3, 4, 5, 1]<br \/>\n&#xff08;8&#xff09;index \u6839\u636e\u5185\u5bb9\u67e5\u770b\u7d22\u5f15\u4f4d<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\nprint(list1.index(5))<br \/>\n&#xff08;9&#xff09;sort \u6392\u5e8f&#xff0c; \u5347\u5e8f<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\nlist1.sort()<br \/>\nprint(list1) #[1, 1, 1, 2, 3, 4, 5]<br \/>\n&#xff08;10&#xff09;sorted \u51fd\u6570 \u00a0&#xff1a;<br \/>\n\u5347\u5e8f\u3001\u964d\u5e8f<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\nprint(sorted(list1,reverse&#061;True)) \u964d\u5e8f<br \/>\nprint(sorted(list1,reverse&#061; False)) \u5347\u5e8f<br \/>\n&#xff08;11&#xff09;reverse \u00a0\u51fd\u6570&#xff1a;\u53cd\u8f6c<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\nlist1.reverse()<br \/>\nprint(list1) #[1, 1, 5, 4, 3, 2, 1]<br \/>\n\u4e94\u3001\u5143\u7ec4<br \/>\n\u5b9a\u4e49&#xff1a;\u5143\u7956\u662fpython\u4e2d\u7684\u4e00\u79cd\u6570\u636e\u7ed3\u6784&#xff0c;\u5143\u7ec4\u7531\u4e0d\u540c\u7684\u5143\u7d20\u7ec4\u6210&#xff0c;<br \/>\n\u6bcf\u4e2a\u5143\u7d20\u53ef\u5b58\u50a8\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e&#xff1b;\u5982\u5b57\u7b26\u4e32&#xff0c;\u6570\u503c\u7b49\u3002<br \/>\n\u5143\u7956\u662f\u201c\u5199\u4fdd\u62a4\u201d&#xff0c;\u5143\u7956\u4f5c\u4e3a\u4e00\u4e2a\u6574\u4f53&#xff0c;\u521b\u5efa\u540e\u4e0d\u80fd\u505a\u4efb\u4f55\u4fee\u6539\u64cd\u4f5c\u3002<br \/>\n\u7b26\u53f7&#xff1a;&#xff08;&#xff09;<br \/>\n\u5b57\u7b26\u7c7b\u578b&#xff1a;tuple<br \/>\n\u521b\u5efa\u5143\u7ec4&#xff1a;<br \/>\n\u6848\u4f8b<br \/>\nt&#061;(1,2,3)<br \/>\nprint(type(t)) #&lt;class &#039;tuple&#039;&gt;<br \/>\n\u6ce8\u610f\u70b9&#xff1a;\u5f53\u4e00\u4e2a\u5143\u7d20\u7684\u65f6\u5019&#xff0c;\u8981\u52a0\u4e00\u4e2a&#xff0c;\u53f7<br \/>\n\u5143\u7ec4\u8fd0\u7528&#xff1a;<br \/>\n&#xff08;t&#061;(1,2,3,4,2)<br \/>\nprint(type(t)) #&lt;class &#039;tuple&#039;&gt;<br \/>\n&#xff08;1&#xff09;print(t.index(3)) #2 \u00a0\u6839\u636e\u5185\u5bb9\u67e5\u770b\u7d22\u5f15\u4f4d<br \/>\n&#xff08;2&#xff09;print(t.count(2)) #2 \u00a0\u7edf\u8ba1\u5143\u7d20\u51fa\u73b0\u7684\u6b21\u6570<br \/>\n&#xff08;3&#xff09;\u5143\u7ec4\u8981\u4fee\u6539&#xff0c;\u5148\u901a\u8fc7list\u5c06\u5143\u7ec4\u6539\u6210\u5217\u8868\u4fee\u6539&#xff0c;\u5728\u901a\u8fc7tuple\u5c06\u5217\u8868\u8f6c\u6362\u5143\u7ec4<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nt&#061;(1,2,3,4,2)<br \/>\nprint(type(t))<br \/>\ns&#061;list(t) \u00a0#\u901a\u8fc7list\u5c06\u5143\u7ec4\u8f6c\u6362\u6210\u5217\u8868<br \/>\nprint(type(s))<br \/>\ns.append(&#034;w&#034;) #\u5229\u7528\u5217\u8868\u7684\u51fd\u6570\u4fee\u6539\u5185\u5bb9<br \/>\nprint(s)<br \/>\nc&#061;tuple(s) #\u8fc7tuple \u5c06\u5217\u8868\u8f6c\u6362\u6210\u5143\u7ec4<br \/>\nprint(type(c))<br \/>\nprint(c)<br \/>\n4\u3001\u5143\u7ec4\u548c\u5217\u8868\u7684\u533a\u522b<br \/>\n\u76f8\u540c\u70b9&#xff1a; \u6709\u5e8f\u3001\u90fd\u652f\u6301\u5207\u7247<br \/>\n\u4e0d\u540c\u70b9&#xff1a;<br \/>\n&#xff08;1&#xff09;\u5217\u8868\u7684\u5b57\u7b26\u7c7b\u578b&#xff1a;lsit&#xff0c;\u5143\u7ec4\u7684\u5b57\u7b26\u7c7b\u578b\u662f&#xff1a;tuple<br \/>\n&#xff08;2&#xff09;\u5217\u8868\u662f\u53ef\u53d8\u5bf9\u8c61&#xff0c;\u5143\u7ec4\u662f\u4e0d\u53ef\u53d8\u5bf9\u8c61<br \/>\n&#xff08;3&#xff09;\u5217\u8868\u7684\u7b26\u53f7\u3010\u3011&#xff0c;\u5143\u7ec4\u7528\u7684&#xff08;&#xff09;<br \/>\n\u00a0&#xff08;4&#xff09;\u5143\u5217\u76f8\u5bf9\u5217\u8868\u6bd4\u8f83\u5b89\u5168<\/p>\n<p>\n\u516d\u3001\u5b57\u5178<br \/>\n(1)\u5b57\u5178\u7684\u5b57\u7b26\u7c7b\u578b:dict<br \/>\n(2)\u7b26\u53f7&#xff1a;{}<br \/>\n&#xff08;3&#xff09;\u5b58\u50a8\u65b9\u5f0f&#xff1a;\u952e\u503c\u5bf9<br \/>\n&#xff08;4&#xff09;\u5b57\u5178\u7684\u952e\u552f\u4e00&#xff0c;\u503c\u662f\u53d8\u5316\u7684<br \/>\n&#xff08;5&#xff09;\u521b\u5efa\u5b57\u5178&#xff1a;<br \/>\n\u65b9\u6cd5\u4e00&#xff1a;{} \u5b9a\u4e49\u5b57\u5178<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nprint(type(d))#&lt;class &#039;dict&#039;&gt;<\/p>\n<p>\u65b9\u6cd5&#xff1a;dict\u8f6c\u6362<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nli&#061;[(&#034;a&#034;,1),(&#034;b&#034;,2)]<br \/>\nprint(type(li)) #&lt;class &#039;list&#039;&gt;<br \/>\nd&#061;dict(li)<br \/>\nprint(type(d)) #&lt;class &#039;dict&#039;&gt;<br \/>\nprint(d) #{&#039;a&#039;: 1, &#039;b&#039;: 2}<br \/>\n&#xff08;6&#xff09;\u5b57\u5178\u7684\u51fd\u6570<br \/>\n1\u3001\u6dfb\u52a0\u952e\u503c\u5bf9<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nd[&#034;h&#034;]&#061;3<br \/>\nprint(d) #{&#039;name&#039;: &#039;zs&#039;, &#039;age&#039;: 18, &#039;h&#039;: 3}<br \/>\n2\u3001\u53d6\u51fa\u6240\u6709\u7684\u952e&#xff1a;<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nprint(d.keys()) #dict_keys([&#039;name&#039;, &#039;age&#039;])<br \/>\n3\u3001\u53d6\u51fa\u6240\u6709\u503c<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nprint(d.values()) #dict_values([&#039;zs&#039;, 18])<br \/>\n4\u3001\u6839\u636e\u952e\u53d6\u51fa\u503c<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nprint(d[&#034;name&#034;])<br \/>\n5\u3001\u6dfb\u52a0\u9ed8\u8ba4\u503c&#xff08;\u4f18\u5148\u7ea7\u5c0f\u4e8e\u8868\u683c\u4e2d\u7684\u5143\u7d20&#xff09;<br \/>\n\u6848\u4f8b1&#xff1a;<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nd.setdefault(&#034;c&#034;,&#034;1&#034;)<br \/>\nprint(d)<br \/>\n\u6848\u4f8b2&#xff1a;<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nd.setdefault(&#034;age&#034;,&#034;1&#034;)<br \/>\nprint(d) #{&#039;name&#039;: &#039;zs&#039;, &#039;age&#039;: 18}<br \/>\n\u6848\u4f8b3&#xff1a;\u6dfb\u52a0\u5185\u5bb9\u7684\u4f18\u5148\u7ea7&#xff1a; \u00a0 \u76f4\u63a5\u6dfb\u52a0&gt; \u672c\u8eab\u5143\u7d20&gt;\u9ed8\u8ba4\u6dfb\u52a0\u5143\u7d20<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nd[&#034;age&#034;]&#061; &#034;10&#034;<br \/>\nprint(d)<br \/>\n6\u3001\u5220\u9664\u5b57\u5178\u6307\u5b9a\u952e<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\ndel \u00a0d[&#034;name&#034;]<br \/>\nprint(d)<br \/>\n7\u3001clear\u6e05\u9664\u4e00\u4e2a\u5b57\u5178<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nd.clear()<br \/>\nprint(d) #{}<br \/>\n8\u3001pop \u5220\u9664\u5b57\u5178<br \/>\n\u6848\u4f8b1&#xff1a;\u5220\u9664\u6307\u5b9a\u7684\u5185\u5bb9<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nd.pop(&#034;name&#034;)<br \/>\nprint(d) #{&#039;age&#039;: 18}<br \/>\n9\u3001get\u6839\u636e\u952e\u83b7\u53d6\u503c<br \/>\n\u6848\u4f8b<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nprint(d.get(&#034;name&#034;)) #zs<br \/>\n10\u3001popitem \u9ed8\u8ba4\u5220\u9664\u4e00\u7ec4\u952e\u503c<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nprint(d.popitem()) #(&#039;age&#039;, 18)\u00a0<br \/>\n11\u3001update\u4e24\u4e2a\u5b57\u5178\u5408\u5e76<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nd1&#061;{&#034;fs&#034;:&#034;88&#034;,&#034;cj&#034;:20}<br \/>\nd.update(d1)<br \/>\nprint(d) #{&#039;name&#039;: &#039;zs&#039;, &#039;age&#039;: 18, &#039;fs&#039;: &#039;88&#039;, &#039;cj&#039;: 20}<br \/>\n12\u3001copy \u590d\u5236\u5b57\u5178<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\ns&#061;d.copy()<br \/>\nprint(d) #{&#039;name&#039;: &#039;zs&#039;, &#039;age&#039;: 18}<br \/>\nprint(s) #{&#039;name&#039;: &#039;zs&#039;, &#039;age&#039;: 18}<br \/>\n13\u3001for\u5faa\u73af \u904d\u5386\u5b57\u5178<br \/>\n\u6848\u4f8b1&#xff1a;\u904d\u5386\u952e\u548c\u503c<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nfor i \u00a0in d:<br \/>\n\u00a0 \u00a0 print(i,d[i])<br \/>\n\u6848\u4f8b2&#xff1a;\u904d\u5386\u6240\u6709\u952e<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nfor i \u00a0in d:<br \/>\n\u00a0 \u00a0 print(i)<br \/>\n14\u3001\u4f7f\u7528items \u904d\u5386\u952e\u548c\u7ec4<br \/>\n\u6848\u4f8b<br \/>\nd&#061;{&#034;name&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nfor k&#xff0c;v \u00a0in d.items():<br \/>\n\u00a0 \u00a0 print(k,v)<br \/>\n15\u3001formkeys\u5feb\u901f\u751f\u6210\u5b57\u5178<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nprint({}.fromkeys([&#034;name&#034;,&#034;age&#034;])) #{&#039;name&#039;: None, &#039;age&#039;: None}<br \/>\nprint({}.fromkeys([&#034;name&#034;,&#034;age&#034;],&#034;1&#034;)) #{&#039;name&#039;: &#039;1&#039;, &#039;age&#039;: &#039;1&#039;}<br \/>\n16\u3001update \u5408\u5e76\u5b57\u5178<br \/>\n# d1 &#061; {&#034;name&#034;: &#034;zs&#034;, &#034;age&#034;: 18}<br \/>\n# d2&#061;{&#034;a&#034;:1,&#034;b&#034;:2,&#034;c&#034;:3,&#034;d&#034;:4}<br \/>\n# d1.update(d2)<br \/>\n# print(d1) #{&#039;name&#039;: &#039;zs&#039;, &#039;age&#039;: 18, &#039;a&#039;: 1, &#039;b&#039;: 2, &#039;c&#039;: 3, &#039;d&#039;: 4}<br \/>\n# print(d2) #{&#039;a&#039;: 1, &#039;b&#039;: 2, &#039;c&#039;: 3, &#039;d&#039;: 4}<\/p>\n<p>\u4e03\u3001\u96c6\u5408<br \/>\n\u6700\u4e3b\u8981\u4f5c\u7528&#xff1a;\u53bb\u91cd<br \/>\n\u96c6\u5408&#xff1a;\u65e0\u5e8f<\/p>\n<p>&#xff08;1&#xff09;\u53ef\u53d8\u96c6\u5408 &#xff1a;set<br \/>\n\u5b57\u7b26\u7c7b\u578b&#xff1a;&lt;class &#039;set&#039;&gt;<br \/>\n1\u3001\u96c6\u5408\u53bb\u91cd<br \/>\n\u6848\u4f8b&#xff1a;list1&#061;[1,2,3,4,5,1,1]<br \/>\ns&#061;set(list1)<br \/>\nprint(type(s)) #&lt;class &#039;set&#039;&gt;<br \/>\nprint(s) #{1, 2, 3, 4, 5}<br \/>\n2\u3001copy\u590d\u5236\u96c6\u5408<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\ns&#061;set(list1)<br \/>\nc&#061;s.copy()<br \/>\nprint(c)<br \/>\nprint(s)<br \/>\n3\u3001clear \u6e05\u9664\u96c6\u5408<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\ns&#061;set(list1)<br \/>\nprint(s.clear()) #None<br \/>\n4\u3001pop\u5220\u9664<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\ns&#061;set(list1)<br \/>\ns.pop()<br \/>\nprint(s)<br \/>\n5\u3001add \u6dfb\u52a0\u5143\u7d20<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\ns&#061;set(list1)<br \/>\ns.add(9)<br \/>\nprint(s)<br \/>\n6\u3001remove \u5220\u9664\u96c6\u5408\u7684\u5185\u5bb9<br \/>\n\u6848\u4f8b<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\ns&#061;set(list1)<br \/>\ns.remove(3)<br \/>\nprint(s)<br \/>\n7\u3001update \u5c06\u4e24\u4e2a\u96c6\u5408\u5408\u5e76\u6210\u4e00\u4e2a\u96c6\u5408<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\nlist2&#061;[6,6,7787]<br \/>\ns&#061;set(list1)<br \/>\nm&#061;set(list2)<br \/>\ns.update(m)<br \/>\nprint(s)<br \/>\n&#xff08;2&#xff09;\u4e0d\u53ef\u53d8\u96c6\u5408&#xff1a;frozenset<br \/>\n1\u3001\u53ea\u6709\u4e00\u4e2a\u4ececopy\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528&#xff1a;<br \/>\n\u6848\u4f8b<br \/>\nlist1&#061;[1,2,3,4,5,1,1]<br \/>\ns&#061;frozenset(list1)<br \/>\nc&#061;s.copy()<br \/>\nprint(c)<\/p>\n<p>\u4ee5\u4e0a\u90fd\u5b57\u7b26\u7c7b\u578b&#xff1a;<br \/>\nint&#xff08;\u6570\u503c&#xff09;\u3001str&#xff08;\u5b57\u7b26&#xff09;\u3001list&#xff08;\u5217\u8868&#xff09;\u3001tuple&#xff08;\u5143\u7ec4&#xff09;\u3001dict&#xff08;\u5b57\u5178&#xff09;\u3001set&#xff08;\u96c6\u5408&#xff09; \u3001frozenset&#xff08;\u4e0d\u53ef\u53d8\u96c6\u5408&#xff09;<br \/>\n\u6574\u7406\u4e0b\u6bcf\u4e2a\u5b57\u7b26\u7c7b\u578b\u7684\u5185\u5bb9<\/p>\n<p>\u9762\u8bd5\u9898:<br \/>\n1.python\u7684\u5b57\u7b26\u7c7b\u578b\u6709\u54ea\u4e9b&#xff1f;<\/p>\n<p>2\u3001\u5217\u8868\u548c\u5143\u7ec4\u7684\u533a\u522b&#xff1f;<\/p>\n<p>3\u3001\u5b57\u7b26\u3001\u5217\u8868\u3001\u5143\u7ec4\u3001\u5b57\u5178\u3001\u96c6\u5408\u7684\u4e86\u89e3&#xff1f;<\/p>\n<p>\n\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>python\u4e2d\u7684\u5b57\u7b26\u7c7b<br \/>\n\u4e00\u3001\u7d22\u5f15<br \/>\n\u4f7f\u7528\u7d22\u5f15\u6765\u8bbf\u95ee\u5e8f\u5217\u4e2d\u7684\u5143\u7d20<br \/>\n\u6b63\u5411\u7d22\u5f15&#xff1a;0123456<br \/>\n\u8d1f\u5411\u7d22\u5f15&#xff1a; \u00a0-3 -2-1\u4e8c\u3001\u6839\u636e\u7d22\u5f15\u5207\u7247<br \/>\n\u516c\u5f0f&#xff1a;\u5f00\u59cb\u503c&#xff0c;\u7ed3\u675f\u503c&#xff0c;\u6b65\u957f<br \/>\n\u5305\u542b\u5f00\u59cb\u503c&#xff0c;\u4e0d\u5305\u542b\u7ed3\u675f\u503c&#xff0c;<br \/>\n\u7d22\u5f15\u4ece0\u5f00\u59cb<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nstr1\\&#8221;abcdefghijk\\&#8221;<br \/>\n#\u6b63\u5411\u7d22\u5f15&#xff1a;01234567<br \/>\nprint(str1[0:1]) #0\u7d22\u5f15&#xff0c;\u5305\u542b\u5f00\u59cb\u503c&amp;#xf<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,305],"topic":[],"class_list":["post-109220","post","type-post","status-publish","format-standard","hentry","category-server","tag-python","tag-305"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>python\u5b57\u7b26\u7c7b\u578b - \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\/109220.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"python\u5b57\u7b26\u7c7b\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"python\u4e2d\u7684\u5b57\u7b26\u7c7b \u4e00\u3001\u7d22\u5f15 \u4f7f\u7528\u7d22\u5f15\u6765\u8bbf\u95ee\u5e8f\u5217\u4e2d\u7684\u5143\u7d20 \u6b63\u5411\u7d22\u5f15&#xff1a;0123456 \u8d1f\u5411\u7d22\u5f15&#xff1a; \u00a0-3 -2-1\u4e8c\u3001\u6839\u636e\u7d22\u5f15\u5207\u7247 \u516c\u5f0f&#xff1a;\u5f00\u59cb\u503c&#xff0c;\u7ed3\u675f\u503c&#xff0c;\u6b65\u957f \u5305\u542b\u5f00\u59cb\u503c&#xff0c;\u4e0d\u5305\u542b\u7ed3\u675f\u503c&#xff0c; \u7d22\u5f15\u4ece0\u5f00\u59cb \u6848\u4f8b&#xff1a; str1&quot;abcdefghijk&quot; #\u6b63\u5411\u7d22\u5f15&#xff1a;01234567 print(str1[0:1]) #0\u7d22\u5f15&#xff0c;\u5305\u542b\u5f00\u59cb\u503c&amp;#xf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/109220.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-23T09:48:56+00:00\" \/>\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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109220.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/109220.html\",\"name\":\"python\u5b57\u7b26\u7c7b\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-23T09:48:56+00:00\",\"dateModified\":\"2026-09-23T09:48:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/109220.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/109220.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109220.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"python\u5b57\u7b26\u7c7b\u578b\"}]},{\"@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":"python\u5b57\u7b26\u7c7b\u578b - \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\/109220.html","og_locale":"zh_CN","og_type":"article","og_title":"python\u5b57\u7b26\u7c7b\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"python\u4e2d\u7684\u5b57\u7b26\u7c7b \u4e00\u3001\u7d22\u5f15 \u4f7f\u7528\u7d22\u5f15\u6765\u8bbf\u95ee\u5e8f\u5217\u4e2d\u7684\u5143\u7d20 \u6b63\u5411\u7d22\u5f15&#xff1a;0123456 \u8d1f\u5411\u7d22\u5f15&#xff1a; \u00a0-3 -2-1\u4e8c\u3001\u6839\u636e\u7d22\u5f15\u5207\u7247 \u516c\u5f0f&#xff1a;\u5f00\u59cb\u503c&#xff0c;\u7ed3\u675f\u503c&#xff0c;\u6b65\u957f \u5305\u542b\u5f00\u59cb\u503c&#xff0c;\u4e0d\u5305\u542b\u7ed3\u675f\u503c&#xff0c; \u7d22\u5f15\u4ece0\u5f00\u59cb \u6848\u4f8b&#xff1a; str1\"abcdefghijk\" #\u6b63\u5411\u7d22\u5f15&#xff1a;01234567 print(str1[0:1]) #0\u7d22\u5f15&#xff0c;\u5305\u542b\u5f00\u59cb\u503c&amp;#xf","og_url":"https:\/\/www.wsisp.com\/helps\/109220.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-23T09:48:56+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/109220.html","url":"https:\/\/www.wsisp.com\/helps\/109220.html","name":"python\u5b57\u7b26\u7c7b\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-23T09:48:56+00:00","dateModified":"2026-09-23T09:48:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/109220.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/109220.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/109220.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"python\u5b57\u7b26\u7c7b\u578b"}]},{"@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\/109220","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=109220"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109220\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=109220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=109220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=109220"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=109220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}