{"id":109519,"date":"2026-09-24T11:40:48","date_gmt":"2026-09-24T03:40:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/109519.html"},"modified":"2026-09-24T11:40:48","modified_gmt":"2026-09-24T03:40:48","slug":"python%e4%b9%8b%e6%a8%a1%e5%9d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/109519.html","title":{"rendered":"python\u4e4b\u6a21\u5757"},"content":{"rendered":"<p>python\u4e4b\u6a21\u5757<br \/>\n\u4e00\u3001\u6a21\u5757\u7684\u4ecb\u7ecd\u7ec4\u7ec7python<br \/>\n1\u3001python\u6a21\u5757&#xff0c;\u662f\u4e00\u4e2apython\u6587\u4ef6&#xff0c;\u4e00\u4e2a.py\u6587\u4ef6&#xff0c;\u534a\u9163python\u5bf9\u8c61\u5b9a\u4e49\u548cpoytho\u8bed\u53e5<br \/>\n2\u3001\u6a21\u5757\u80fd\u591f\u6709\u903b\u8f91\u7684\u7ec4\u7ec7\u4ee3\u7801<br \/>\n3\u3001\u628a\u76f8\u5173\u7684\u4ee3\u7801\u5206\u914d\u5230\u4e00\u4e2a\u6a21\u5757\u91cc\u80fd\u8ba9\u4f60\u7684\u4ee3\u7801\u66f4\u597d\u7528&#xff0c;\u66f4\u6613\u61c2\u3002<br \/>\n4\u3001\u6a21\u5757\u80fd\u5b9a\u4e49\u51fd\u6570&#xff0c;\u7c7b\u548c\u53d8\u91cf&#xff0c;\u6a21\u5757\u91cc\u4e5f\u80fd\u5305\u542b\u53ef\u6267\u884c\u7684\u4ee3\u7801\u3002<\/p>\n<p>\u4e8c\u3001\u6a21\u5757\u7684\u5bfc\u5165<br \/>\n1\u3001import \u00a0\u6a21\u5757\u540d<br \/>\n\u00a0\u683c\u5f0f&#xff1a;\u6a21\u5757\u540d.\u51fd\u6570<\/p>\n<p>\u6848\u4f8b&#xff1a;<br \/>\nimport time \u00a0#\u5bfc\u5165time\u6a21\u5757<br \/>\nprint(1)<br \/>\ntime.sleep(10) #\u4f11\u7720<br \/>\nprint(2)<\/p>\n<p>2\u3001\u5bfc\u5165\u6240\u6709\u7684\u51fd\u6570<br \/>\n#from \u00a0\u6a21\u5757\u540d \u00a0 import \u00a0* \u00a0\u6240\u6709\u7684\u51fd\u6570<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nfrom time import \u00a0 * \u00a0#from \u00a0\u6a21\u5757\u540d \u00a0 import \u00a0* \u00a0\u6240\u6709\u7684\u51fd\u6570<br \/>\nprint(1)<br \/>\nsleep(10) #\u4f11\u7720 \u00a0 #\u51fd\u6570\u540d<br \/>\nprint(ctime()) #\u663e\u793a\u5f53\u524d\u65f6\u95f4<br \/>\nprint(2)<\/p>\n<p>3\u3001\u6307\u5b9a\u51fd\u6570\u5bfc\u5165<br \/>\n\u683c\u5f0f&#xff1a;<br \/>\n\u00a0#from \u00a0\u6a21\u5757\u540d \u00a0 import \u00a0\u6307\u5b9a\u51fd\u6570 \u00a0<\/p>\n<p>from time import \u00a0 ctime \u00a0#from \u00a0\u6a21\u5757\u540d \u00a0 import \u00a0\u6307\u5b9a\u51fd\u6570 \u00a0<br \/>\nprint(1)<br \/>\n# sleep(10) #\u4f11\u7720 \u00a0 #\u51fd\u6570\u540d<br \/>\nprint(ctime()) #\u663e\u793a\u5f53\u524d\u65f6\u95f4<br \/>\nprint(2)<\/p>\n<p>4\u3001\u901a\u8fc7\u53d6\u522b\u540d\u6765\u8c03\u7528\u51fd\u6570<br \/>\n\u683c\u5f0f&#xff1a;<br \/>\nfrom \u00a0\u5305\u540d.\u6a21\u5757\u540d import \u51fd\u6570\u540d as \u522b\u540d<br \/>\np()<br \/>\naa\u6587\u4ef6&#xff1a;<br \/>\nfrom \u00a0bao.bb import hs as p<br \/>\np()<br \/>\nbb\u6587\u4ef6&#xff1a;<br \/>\ndef \u00a0hs():<br \/>\n\u00a0 \u00a0 print(1)<br \/>\ndef hs2():<br \/>\n\u00a0 \u00a0 print(2)<\/p>\n<p>\u6ce8\u610f&#xff1a;<br \/>\n1\u3001\u4e00\u4e2apy\u6587\u4ef6\u4e2d&#xff0c;\u4e00\u4e2a\u6a21\u5757\u4e3b\u8981\u5bfc\u5165\u4e00\u6b21&#xff0c;\u4e0d\u7ba1\u6267\u884c\u591a\u5c11\u6b21&#xff0c;\u4e3b\u8981\u5bfc\u5165\u4e00\u6b21\u5c31ok<br \/>\n2\u3001\u6a21\u5757\u4e0d\u8c03\u7528\u65f6\u662f\u7f6e\u7070\u72b6\u6001<br \/>\n\u4e09\u3001\u6a21\u5757\u7684\u8be6\u89e3<br \/>\n1\u3001time\u6a21\u5757<br \/>\n\u6848\u4f8b2&#xff1a;<br \/>\nimport \u00a0time\u00a0<br \/>\nprint(time.time()) #1760580583.2631614 \u00a01970\u5230\u73b0\u5728\u7684\u65f6\u95f4<br \/>\nprint(time.ctime()) #Thu Oct 16 10:09:59 2025 \u56fati\u5b9a\u683c\u5f0f\u663e\u793a\u5f53\u524d\u65f6\u95f4<br \/>\ntime.sleep(2) \u00a0#\u4f11\u7720 \u00a0 &#xff0c;\u62ec\u53f7\u5185\u662f\u79d2\u6570<br \/>\nprint(time.asctime()) ##\u8f6c\u6362\u4e3aasc\u7801\u663e\u793a\u5f53\u524d\u65f6\u95f4 Thu Oct 16 10:11:58 2025<br \/>\nprint(time.strftime(&#034; %y-%m-%d %H-%M-%S &#034;)) #\u65f6\u95f4\u6233 \u00a0\u6309\u7167\u683c\u5f0f\u8f93\u51fa\u65f6\u95f4<br \/>\n\u6848\u4f8b2&#xff1a;<br \/>\nfrom \u00a0time import \u00a0*<br \/>\nprint(time()) #1760580583.2631614 \u00a01970\u5230\u73b0\u5728\u7684\u65f6\u95f4<br \/>\nprint(ctime()) #Thu Oct 16 10:09:59 2025 \u56fati\u5b9a\u683c\u5f0f\u663e\u793a\u5f53\u524d\u65f6\u95f4<br \/>\nsleep(2) \u00a0#\u4f11\u7720 \u00a0 &#xff0c;\u62ec\u53f7\u5185\u662f\u79d2\u6570<br \/>\nprint(asctime()) ##\u8f6c\u6362\u4e3aasc\u7801\u663e\u793a\u5f53\u524d\u65f6\u95f4 Thu Oct 16 10:11:58 2025<br \/>\nprint(strftime(&#034; %y-%m-%d %H-%M-%S &#034;)) #\u65f6\u95f4\u6233 \u00a0\u6309\u7167\u683c\u5f0f\u8f93\u51fa\u65f6\u95f4<\/p>\n<p>2\u3001random\u6a21\u5757<br \/>\n\u751f\u6210\u968f\u673a\u6d6e\u70b9\u6570\u3001\u6574\u6570\u3001\u5b57\u7b26\u4e32&#xff0c;\u4ece\u4e00\u7ec4\u6570\u636e\u4e2d\u9009\u62e9\u6570\u636e&#xff0c;\u6253\u4e71\u6570\u636e<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nimport random<br \/>\nprint(random.random()) #0.5409081269951179 ##\u8be5\u65b9\u6cd5\u662f\u751f\u62100-1\u4e4b\u95f4\u7684\u6d6e\u70b9\u6570&#xff0c;\u4f46\u662f\u80fd\u53d6\u52300&#xff0c;\u4f46\u662f\u53d6\u4e0d\u52301<br \/>\nprint(random.randint(1,100))#\u751f\u6210\u6307\u5b9a\u8303\u56f4\u5185\u6574\u6570&#xff0c;\u5305\u62ec\u5f00\u59cb\u548c\u7ed3\u675f\u503c<br \/>\nprint(random.randrange(1,2)) ##\u751f\u6210\u6307\u5b9a\u8303\u56f4\u5185\u7684\u6570,\u5305\u542b\u5f00\u59cb\u503c&#xff0c;\u4e0d\u5305\u542b\u7ed3\u675f\u503c<br \/>\nprint(random.randrange(1,10,2))#\u751f\u6210\u6307\u5b9a\u8303\u56f4\u5185\u7684\u5947\u6570&#xff0c;\u4e0d\u5305\u62ec\u7ed3\u675f\u503c<br \/>\nprint(random.randrange(0,10,2))#\u751f\u6210\u6307\u5b9a\u8303\u56f4\u5185\u7684\u5076\u6570&#xff0c;\u4e0d\u5305\u62ec\u7ed3\u675f\u503c<br \/>\nlist1&#061;[1,2,3,4,5,&#034;a&#034;]<br \/>\n# print(random.sample(list1,3)) #\u9009\u62e9n\u4e2a\u968f\u673a\u4e14\u72ec\u7acb\u7684\u5143\u7d20<br \/>\n# print(random.choice(list1)) ##\u751f\u6210\u968f\u673a\u5b57\u7b26<br \/>\nrandom.shuffle(list1) # #\u6d17\u724c&#xff08;\u968f\u673a\u6570\u5217&#xff09;<br \/>\nprint(list1)<br \/>\n3\u3001string\u6a21\u5757<br \/>\nimport \u00a0string<br \/>\nprint(string.digits) #0123456789<br \/>\nprint(string.hexdigits) #0123456789abcdefABCDEF<br \/>\nprint(string.ascii_letters) #abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<br \/>\nprint(string.ascii_lowercase) #abcdefghijklmnopqrstuvwxyz<br \/>\nprint(string.ascii_uppercase) #ABCDEFGHIJKLMNOPQRSTUVWXYZ<br \/>\nprint(string.digits&#043;string.ascii_letters) #0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<\/p>\n<p>\u4f5c\u4e1a&#xff1a;<br \/>\n1\u3001\u4f7f\u7528random\u6a21\u5757\u968f\u673a\u751f\u6210\u624b\u673a\u53f7\u7801\u3001\u81ea\u5df1\u5b9a\u4e49\u624b\u673a\u53f7\u7801\u5f00\u5934\u7684\u524d1\u4f4d1<br \/>\n\u6848\u4f8b1;<br \/>\nimport string<br \/>\nimport \u00a0random<br \/>\nsj&#061;[&#034;1&#034;]<br \/>\nfor i \u00a0in range(10):<br \/>\n\u00a0 \u00a0 sj.append(random.choice(string.digits))<br \/>\nprint(&#034;&#034;.join(sj))<br \/>\n\u00a0\u6848\u4f8b3&#xff1a;<br \/>\nimport random,string<br \/>\nnums&#061;random.sample(string.digits,10)<br \/>\nnumber&#061;&#039;1&#039;&#043; &#039;&#039;.join(nums)<br \/>\nprint(number)<\/p>\n<p>\n2\u3001\u7528random\u6a21\u5757\u968f\u673a\u751f\u62106\u4f4d\u6570\u9a8c\u8bc1\u7801<br \/>\n\u6848\u4f8b2&#xff1a;<br \/>\nimport string<br \/>\nimport \u00a0random<br \/>\n# print(&#034;&#034;.join(random.sample(string.digits&#043;string.ascii_letters,6)))<br \/>\ny&#061;[]<br \/>\nfor i in range(6):<br \/>\n\u00a0 \u00a0 y.append(random.choice(string.digits&#043;string.ascii_letters))<br \/>\nprint(&#034;&#034;.join(y))<br \/>\n\u6848\u4f8b2&#xff1a;<br \/>\nimport string<br \/>\nimport \u00a0random<br \/>\nprint(&#034;&#034;.join(random.sample(string.digits&#043;string.ascii_letters,6)))<br \/>\nprint(&#034;&#034;.join(sj&#043;sw))<\/p>\n<p>4\u3001\u52a0\u5bc6\u6a21\u5757<br \/>\nbs64\u3001md5 \u00a0\u4e24\u79cd\u65b9\u5f0f<\/p>\n<p>\u5728\u7ebf\u52a0\u5bc6\u7f51\u7ad9&#xff1a;<br \/>\n&#xff08;1&#xff09;base64\u52a0\u89e3\u5bc6<br \/>\nimport base64 \u00a0 \u00a0#\u5bfc\u5165base64 \u52a0\u5bc6\u6a21\u5757<br \/>\na&#061;base64.b64encode(b&#034;123456&#034;) #\u52a0\u5bc6 \u00a0b \u4e8c\u8fdb\u5236 \u00a0 \u5bc6\u7801<br \/>\nprint(a) # b&#039;MTIzNDU2&#039;<br \/>\nb&#061;base64.b64decode(b&#039;MTIzNDU2&#039;)<br \/>\nprint(b) #b&#039;123456&#039;<br \/>\n&#xff08;2&#xff09;md5\u52a0\u5bc6&#xff0c;\u73b0\u5728\u5728hashlib\u6a21\u5757<br \/>\na\u3001\u5b9a\u4e49&#xff1a;md5\u662f\u4e00\u79cd\u7b97\u6cd5&#xff0c;\u53ef\u4ee5\u5c06\u4e00\u4e2a\u5b57\u7b26\u3001\u6587\u4ef6&#xff0c;md5\u540e\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u56fa\u5b9a\u4e3a128bit\u7684\u4e32&#xff0c;\u8fd9\u4e2a\u5b57\u7b26\u4e32\u552f\u4e00<br \/>\nb\u3001python\u5c06md5\u5f52\u7eb3\u9053hash \u79cd<br \/>\nc\u3001md5\u662f\u53ef\u4ee5\u5c06\u4efb\u610f\u957f\u5ea6\u7684\u8f93\u5165&#xff0c;\u901a\u8fc7hash\u7b97\u6cd5\u53d8\u6210\u56fa\u5b9a\u957f\u5ea6\u7684\u8f93\u51fa&#xff0c;\u6539\u8f93\u51fa\u5c31\u662f\u6563\u5217\u503c&#xff0c;\u4e5f\u79f0\u6458\u8981\u503c&#xff0c;\u8be5\u7b97\u6cd5\u5c31\u662f\u54c8\u5e0c\u51fd\u6570&#xff0c;\u4e5f\u79f0\u6458\u8981\u51fd\u6570<br \/>\nimport \u00a0hashlib<br \/>\nm&#061;hashlib.md5() #\u521b\u5efamd5\u7684\u5bf9\u8c61<br \/>\nm.update(b&#034;123456&#034;) #\u52a0\u5bc6<br \/>\nprint(m.hexdigest()) #e10adc3949ba59abbe56e057f20f883e #\u8fd4\u56de16\u8fdb\u5236\u7684\u5b57\u7b26\u4e32<\/p>\n<p>\u9762\u8bd5\u9898:<br \/>\n1\u3001\u5982\u679c\u5de5\u4f5c\u79cd\u6709\u5f88\u591a\u6570\u636e&#xff0c;\u5982\u679c\u6570\u636e\u88ab\u6539\u52a8&#xff0c;\u6216\u4f20\u9012\u4fee\u6539\u540e&#xff0c;\u770b\u4e0d\u51fa&#xff1f;<br \/>\n&#xff08;1&#xff09;\u901a\u8fc7\u52a0\u5bc6\u68c0\u67e5\u6570\u636e<br \/>\n\u901a\u8fc7\u52a0\u5bc6\u5bf9\u6570\u636e\u8fdb\u884c\u52a0\u5bc6\u5904\u7406&#xff0c;\u751f\u6210\u52a0\u5bc6\u5b57\u7b26&#xff0c;\u5982\u679c\u6709\u6539\u52a8&#xff0c;\u5b57\u7b26\u5c31\u4e0d\u76f8\u540c<br \/>\n&#xff08;2&#xff09;\u6bd4\u5bf9\u6570\u636e\u4e0d\u4e00\u6837&#xff0c;\u52a0\u5bc6\u5b57\u7b26\u5c31\u4e0d\u540c&#xff0c;\u8bf4\u660e\u6570\u636e\u6709\u95ee\u9898<br \/>\n2\u3001\u5c06\u968f\u673a\u751f\u6210\u7684\u9a8c\u8bc1\u7801\u8fdb\u884c\u52a0\u5bc6&#xff1f;<br \/>\nimport \u00a0hashlib<br \/>\nimport string<br \/>\nimport \u00a0random<br \/>\nyzm&#061;&#034;&#034;.join(random.sample(string.digits&#043;string.ascii_letters,6))<br \/>\nprint(yzm)<br \/>\nm&#061;hashlib.md5() #\u521b\u5efamd5\u7684\u5bf9\u8c61<br \/>\nm.update(yzm.encode(encoding&#061;&#034;utf-8&#034;)) #\u52a0\u5bc6<br \/>\nprint(m.hexdigest()) #e10adc3949ba59abbe56e057f20f883e #\u8fd4\u56de16\u8fdb\u5236\u7684\u5b57\u7b26\u4e32<\/p>\n<p>\n5\u3001os\u6a21\u5757<br \/>\nos\u6253\u5f00\u76ee\u5f55&#xff0c;\u6587\u4ef6&#xff0c;\u6587\u6863\u7684\u64cd\u4f5c<\/p>\n<p>import \u00a0os<br \/>\n# print(os.getcwd()) #\u83b7\u53d6\u5f53\u524d\u76f8\u5bf9\u8def\u5f84C:\\\\Users\\\\Administrator\\\\PycharmProjects\\\\PythonProject\\\\hz85<br \/>\n# print(os.path.abspath(__file__)) #\u83b7\u53d6\u7edd\u5bf9\u8def\u5f84<br \/>\n# print(os.path.dirname(os.path.dirname((__file__)))) \u00a0# \u83b7\u53d6\u9879\u76ee\u8def\u5f84<br \/>\n# url1&#061;r&#034;C:\\\\Users\\\\Administrator\\\\PycharmProjects\\\\PythonProject\\\\hz85\\\\aa.py&#034;<br \/>\n# url1&#061;os.path.abspath(__file__) \u00a0#\u83b7\u53d6\u7edd\u5bf9\u8def\u5f84<br \/>\n# url1&#061;os.path.join(os.getcwd(),&#034;aa.py&#034;)<br \/>\n# print(url1)<br \/>\n# url2&#061;os.getcwd()<br \/>\n# print(url2)<br \/>\n# url3&#061;os.path.dirname(os.getcwd())<br \/>\nurl3&#061;os.path.join(os.path.dirname(os.getcwd()),&#034;hz89&#034;)<br \/>\nprint(url3)<br \/>\nurl4&#061;os.path.join(os.path.dirname(os.getcwd()),&#034;hz90&#034;)<br \/>\n# print(os.path.isfile(url2)) #False \u5224\u65ad\u65f6\u4e0d\u662f\u6587\u4ef6&#xff0c;\u662f\u76ee\u5f55<br \/>\n# print(os.path.isfile(url1)) #True \u5224\u65adaa\u662f\u6587\u4ef6<br \/>\n# print(os.path.isdir(url2)) #True \u5224\u65ad\u662f\u4e00\u4e2a\u76ee\u5f55<br \/>\n# print(os.path.isdir(url1)) # False \u00a0aa\u6587\u4ef6\u4e0d\u662f\u76ee\u5f55<br \/>\n# print(os.path.exists(url1)) #True \u5b58\u5728<br \/>\n# print(os.path.exists(url3)) #False \u00a0\u4e0d\u5b58\u5728<br \/>\n# print(os.listdir(url2)) \u00a0#\u67e5\u770b\u76ee\u5f55\u4e0b\u6240\u6709\u7684\u6587\u4ef6\u548c\u6587\u6863<br \/>\n# print(os.path.split(url1)) #\u5206\u5272\u8def\u5f84,\u76f8\u5bf9\u8def\u5f84\u548c\u6587\u6863\u540d\u5206\u5f00<br \/>\n# print(os.path.join(url2,&#034;dcs88.py&#034;)) #\u62fc\u63a5\u8def\u5f84&#xff1a;\u76f8\u5bf9\u8def\u5f84&#043;\u6587\u4ef6\u540d<br \/>\n# print(os.mkdir(url4)) #\u521b\u5efa\u76ee\u5f55<br \/>\n# print(os.rename(url4,url3)) #\u4fee\u6539\u6587\u4ef6\u540d<\/p>\n<p>6\u3001re\u6a21\u5757<br \/>\n\u4e00\u3001re\u662f\u6b63\u5219\u5339\u914d<br \/>\n1\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u4e00\u79cd\u5bf9\u5b57\u7b26\u548c\u7279\u6b8a\u5b57\u7b26\u64cd\u4f5c\u7684\u4e00\u79cd\u903b\u8f91\u516c\u5f0f&#xff0c;\u4ece\u7279\u5b9a\u7684\u5b57\u7b26\u4e2d&#xff0c;\u7528\u6b63\u5219\u8868\u8fbe\u5b57\u7b26\u6765<br \/>\n\u8fc7\u6ee4\u7684\u903b\u8f91&#xff1b;<br \/>\n2\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u6587\u672c\u6a21\u5f0f<br \/>\n3\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u68c0\u67e5\u5b57\u7b26\u662f\u5426\u4e0e\u67d0\u79cd\u6a21\u5f0f\u5339\u914d<br \/>\n4\u3001re\u6a21\u5757\u4f7fpython\u8bed\u8a00\u6709\u5168\u90e8\u7684\u8868\u8fbe\u5f0f\u529f\u80fd<br \/>\n5\u3001re\u8868\u8fbe\u5f0f\u4f5c\u7528&#xff1f;<br \/>\na\u3001\u5feb\u901f\u9ad8\u6548\u67e5\u627e\u6216\u5206\u6790\u5b57\u7b26\u6bd4\u5bf9&#xff0c;\u4e5f\u53eb\u6a21\u5f0f\u5339\u914d&#xff0c;\u6bd4\u5982\u67e5\u627e\u3001\u6bd4\u5bf9\u3001\u66ff\u6362\u3001\u63d2\u5165\u3001\u6dfb\u52a0<br \/>\nb\u3001\u5b9e\u73b0\u4e00\u4e2a\u7f16\u8bd1&#xff0c;\u67e5\u770b&#xff0c;\u4e00\u822c\u5728\u5904\u7406\u6587\u4ef6\u65f6\u7528\u7684\u591a<\/p>\n<p>\u4e8c\u3001\u8ba4\u8bc6re\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u7684\u7279\u6b8a\u5143\u7d20&#xff1f;<br \/>\n\\\\d:\u6570\u5b570-9<br \/>\n\\\\D:\u975e\u6570\u5b57<br \/>\n\\\\s:\u7a7a\u767d\u5b57\u7b26<br \/>\n\\\\n:\u6362\u884c\u7b26<br \/>\n\\\\w \u5339\u914d\u5b57\u6bcd\u6570\u5b57<br \/>\n\\\\W \u5339\u914d\u975e\u5b57\u6bcd\u6570\u5b57<br \/>\n^&#xff1a;\u8868\u793a\u7684\u5339\u914d\u5b57\u7b26\u4ee5\u4ec0\u4e48\u5f00\u5934<br \/>\n$&#xff1a;\u8868\u793a\u7684\u5339\u914d\u5b57\u7b26\u4ee5\u4ec0\u4e48\u7ed3\u5c3e<br \/>\n*&#xff1a;\u5339\u914d\u524d\u9762\u7684\u5b57\u7b260\u6b21\u6216n\u6b21 eg&#xff1a;ab &#xff08;* \u80fd\u5339\u914da \u5339\u914dab \u5339\u914dabb &#xff09;<br \/>\n&#043;&#xff1a;\u5339\u914d&#043;\u524d\u9762\u7684\u5b57\u7b261\u6b21\u6216n\u6b21<br \/>\n?&#xff1a;\u5339\u914d?\u524d\u9762\u7684\u5b57\u7b260\u6b21\u62161\u6b21<br \/>\n{m}&#xff1a;\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b26m\u6b21<br \/>\n{m,n}&#xff1a;\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b26m\u5230n\u6b21(\u5305\u62ecn\u6b21)&#xff0c;m\u6216n\u53ef\u4ee5\u7701\u7565&#xff0c;mn\u90fd\u662f<br \/>\n1\u3001findall<br \/>\n\u4ece\u7b2c\u4e00\u4e2a\u5b57\u7b26\u5f00\u59cb\u67e5\u627e&#xff0c;\u627e\u5230\u5168\u90e8\u76f8\u5173\u5339\u914d\u4e3a\u6b62&#xff0c;\u627e\u4e0d\u5230\u8fd4\u56de\u4e00\u4e2a\u7a7a\u5217\u8868[]<br \/>\n2\u3001match<br \/>\n\u4ece\u7b2c\u4e00\u4e2a\u5b57\u7b26\u5f00\u59cb\u5339\u914d&#xff0c;\u5982\u679c\u7b2c\u4e00\u4e2a\u5b57\u7b26\u4e0d\u662f\u8981\u5339\u914d\u7684\u7c7b\u578b\u3001\u5219\u5339\u914d\u5931\u8d25\u5f97\u5230\u4e00\u4e2anone\u503c<\/p>\n<p>3\u3001compile&#xff08;\u4e0d\u8003\u8651&#xff09;<br \/>\n\u7f16\u8bd1\u6a21\u5f0f\u751f\u6210\u5bf9\u8c61&#xff0c;\u627e\u5230\u5168\u90e8\u76f8\u5173\u5339\u914d\u4e3a\u6b62&#xff0c;\u627e\u4e0d\u5230\u8fd4\u56de\u4e00\u4e2a\u5217\u8868[]<br \/>\n4\u3001search<br \/>\n\u4ece\u7b2c\u4e00\u4e2a\u5b57\u7b26\u5f00\u59cb\u67e5\u627e\u3001\u4e00\u627e\u5230\u5c31\u8fd4\u56de\u7b2c\u4e00\u4e2a\u5b57\u7b26\u4e32&#xff0c;\u627e\u5230\u5c31\u4e0d\u5f80\u4e0b\u627e&#xff0c;\u627e\u4e0d\u5230\u5219\u62a5\u9519<\/p>\n<p>import \u00a0re<br \/>\nstr1&#061;&#034;ab\\\\naabaac&#xff01;d1\\\\n efaaaaBaghaai&#064;jBka\\\\na2b\\\\nbmaaam4&#034;<br \/>\nprint(re.findall(&#034;\\\\d&#034;,str1)) #\u6570\u5b570-9<br \/>\nprint(re.findall(&#034;\\\\D&#034;,str1)) #\u975e\u6570\u5b57<br \/>\nprint(re.findall(&#034;\\\\s&#034;,str1)) #\u7a7a\u767d\u5b57\u7b26<br \/>\nprint(re.findall(&#034;\\\\n&#034;,str1)) \u00a0#\u6362\u884c\u7b26<br \/>\nprint(re.findall(&#034;\\\\w&#034;,str1)) #\u5339\u914d\u5b57\u6bcd\u6570\u5b57<br \/>\nprint(re.findall(&#034;\\\\W&#034;,str1)) #\u5339\u914d\u975e\u5b57\u6bcd\u6570\u5b57<br \/>\nprint(re.findall(&#034;^a&#034;,str1)) #\u8868\u793a\u7684\u5339\u914d\u5b57\u7b26\u4ee5\u4ec0\u4e48\u5f00\u5934<br \/>\nprint(re.findall(&#034;^b&#034;,str1)) #[] \u4e0d\u662f\u4ee5b\u5f00\u5934\u663e\u793a[]<br \/>\nprint(re.findall(&#034;4$&#034;,str1)) # \u8868\u793a\u7684\u5339\u914d\u5b57\u7b26\u4ee5\u4ec0\u4e48\u7ed3\u5c3e<br \/>\nprint(re.findall(&#034;b$&#034;,str1)) #[] \u4e0d\u662f\u4ee5b\u7ed3\u5c3e\u663e\u793a[]<br \/>\n# print(re.findall(&#034;a*&#034;,str1)) #\u5339\u914d\u524d\u9762\u7684\u5b57\u7b260\u6b21\u6216n\u6b21<br \/>\nprint(re.findall(&#034;a&#043;&#034;,str1)) #\u5339\u914d&#043;\u524d\u9762\u7684\u5b57\u7b261\u6b21\u6216n\u6b21<br \/>\nprint(re.findall(&#034;a?&#034;,str1)) #\u5339\u914d?\u524d\u9762\u7684\u5b57\u7b260\u6b21\u62161\u6b21<br \/>\nprint(re.findall(&#034;a{2,4}&#034;,str1)) #\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b26m\u5230n\u6b21(\u5305\u62ecn\u6b21)<br \/>\nprint(re.findall(&#034;a{3}&#034;,str1)) #{m}&#xff1a;\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b26m\u6b21<\/p>\n<p>print(re.findall(&#034;b&#034;,str1,flags&#061;re.I)) #\u67e5\u8be2\u4e0d\u533a\u5206\u5927\u5199 re.I<br \/>\n#re.I\u662f\u4e00\u4e2a\u6807\u8bc6\u7b26<br \/>\nprint(re.sub(&#034;\\\\d&#034;,&#034;k&#034;,str1)) # \u00a0 \u66ff\u6362<\/p>\n<p>7.json \u6a21\u5757<br \/>\npython\u5b57\u7b26\u7c7b\u578b\u548cjson \u5b57\u7b26\u7c7b\u578b\u8f6c\u6362 \u00a0&#xff08;str&#xff09;<\/p>\n<p>1\u3001dumps \u00a0 \u5c06python\u4e2d\u7684\u5b57\u7b26\u7c7b\u578b\u5b57\u5178\u8f6c\u6362\u6210json<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nimport \u00a0json<br \/>\nd&#061;{&#034;anme&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nprint(type(d)) #&lt;class &#039;dict&#039;&gt;<br \/>\nprint(d) #{&#039;anme&#039;: &#039;zs&#039;, &#039;age&#039;: 18}<br \/>\njs&#061;json.dumps(d)<br \/>\nprint(type(js)) #&lt;class &#039;str&#039;&gt;<br \/>\nprint(js) #{&#034;anme&#034;: &#034;zs&#034;, &#034;age&#034;: 18}<\/p>\n<p>2\u3001dump \u5c06python\u4e2d\u5b57\u7b26\u7c7b\u578b\u8f6c\u6210json\u6587\u6863\u7c7b\u578b<br \/>\n\u6848\u4f8b&#xff1a;<br \/>\nimport \u00a0json<br \/>\nd&#061;{&#034;anme&#034;:&#034;zs&#034;,&#034;age&#034;:18}<br \/>\nprint(type(d)) #&lt;class &#039;dict&#039;&gt;<br \/>\nprint(d) #{&#039;anme&#039;: &#039;zs&#039;, &#039;age&#039;: 18}<br \/>\njson.dump(d,open(&#034;js57.json&#034;,&#034;a&#034;)) # \u5c06\u5b57\u5178\u5199\u5165\u5230json\u6587\u4ef6\u4e2d&#xff0c;\u201ca\u201d \u6dfb\u52a0\u6587\u4ef6<\/p>\n<p>3\u3001loads \u00a0json\u7c7b\u578b\u8f6c\u6362\u6210python\u7c7b\u578b\u7684\u5b57\u5178\u7c7b\u578b<br \/>\n\u6848\u4f8b:<br \/>\nimport \u00a0json<br \/>\nd&#061;&#039;{&#034;anme&#034;:&#034;zs&#034;,&#034;age&#034;:18}&#039;<br \/>\nprint(type(d)) #&lt;class &#039;str&#039;&gt;<br \/>\nzd&#061;json.loads(d)<br \/>\nprint(zd)<br \/>\nprint(type(zd)) #&lt;class &#039;dict&#039;&gt;<br \/>\n4\u3001load \u00a0\u5c06\u6587\u4ef6\u4e2djson\u7c7b\u578b\u8f6c\u6362\u6210python\u7c7b\u578b<br \/>\nimport \u00a0json<br \/>\nurl1&#061;r&#034;C:\\\\Users\\\\Administrator\\\\PycharmProjects\\\\untitled\\\\bao\\\\abc.json&#034;<br \/>\njs&#061;json.load(open(url1,&#034;r&#034;,encoding&#061;&#034;utf-8&#034;))<br \/>\nprint(js)<br \/>\nprint(type(js))<\/p>\n","protected":false},"excerpt":{"rendered":"<p>python\u4e4b\u6a21\u5757<br \/>\n\u4e00\u3001\u6a21\u5757\u7684\u4ecb\u7ecd\u7ec4\u7ec7python<br \/>\n1\u3001python\u6a21\u5757&#xff0c;\u662f\u4e00\u4e2apython\u6587\u4ef6&#xff0c;\u4e00\u4e2a.py\u6587\u4ef6&#xff0c;\u534a\u9163python\u5bf9\u8c61\u5b9a\u4e49\u548cpoytho\u8bed\u53e5<br \/>\n2\u3001\u6a21\u5757\u80fd\u591f\u6709\u903b\u8f91\u7684\u7ec4\u7ec7\u4ee3\u7801<br \/>\n3\u3001\u628a\u76f8\u5173\u7684\u4ee3\u7801\u5206\u914d\u5230\u4e00\u4e2a\u6a21\u5757\u91cc\u80fd\u8ba9\u4f60\u7684\u4ee3\u7801\u66f4\u597d\u7528&#xff0c;\u66f4\u6613\u61c2\u3002<br \/>\n4\u3001\u6a21\u5757\u80fd\u5b9a\u4e49\u51fd\u6570&#xff0c;\u7c7b\u548c\u53d8\u91cf&#xff0c;\u6a21\u5757\u91cc\u4e5f\u80fd\u5305\u542b\u53ef\u6267\u884c\u7684\u4ee3\u7801\u3002\u4e8c\u3001\u6a21\u5757\u7684\u5bfc\u5165<br \/>\n1\u3001import \u00a0\u6a21\u5757\u540d\u683c\u5f0f&#xff1a;\u6a21\u5757\u540d.\u51fd\u6570\u6848\u4f8b&amp;#xff<\/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-109519","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\u4e4b\u6a21\u5757 - \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\/109519.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"python\u4e4b\u6a21\u5757 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"python\u4e4b\u6a21\u5757 \u4e00\u3001\u6a21\u5757\u7684\u4ecb\u7ecd\u7ec4\u7ec7python 1\u3001python\u6a21\u5757&#xff0c;\u662f\u4e00\u4e2apython\u6587\u4ef6&#xff0c;\u4e00\u4e2a.py\u6587\u4ef6&#xff0c;\u534a\u9163python\u5bf9\u8c61\u5b9a\u4e49\u548cpoytho\u8bed\u53e5 2\u3001\u6a21\u5757\u80fd\u591f\u6709\u903b\u8f91\u7684\u7ec4\u7ec7\u4ee3\u7801 3\u3001\u628a\u76f8\u5173\u7684\u4ee3\u7801\u5206\u914d\u5230\u4e00\u4e2a\u6a21\u5757\u91cc\u80fd\u8ba9\u4f60\u7684\u4ee3\u7801\u66f4\u597d\u7528&#xff0c;\u66f4\u6613\u61c2\u3002 4\u3001\u6a21\u5757\u80fd\u5b9a\u4e49\u51fd\u6570&#xff0c;\u7c7b\u548c\u53d8\u91cf&#xff0c;\u6a21\u5757\u91cc\u4e5f\u80fd\u5305\u542b\u53ef\u6267\u884c\u7684\u4ee3\u7801\u3002\u4e8c\u3001\u6a21\u5757\u7684\u5bfc\u5165 1\u3001import \u00a0\u6a21\u5757\u540d\u683c\u5f0f&#xff1a;\u6a21\u5757\u540d.\u51fd\u6570\u6848\u4f8b&amp;#xff\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/109519.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-24T03:40:48+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\/109519.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/109519.html\",\"name\":\"python\u4e4b\u6a21\u5757 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-24T03:40:48+00:00\",\"dateModified\":\"2026-09-24T03:40:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/109519.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/109519.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109519.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"python\u4e4b\u6a21\u5757\"}]},{\"@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\u4e4b\u6a21\u5757 - \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\/109519.html","og_locale":"zh_CN","og_type":"article","og_title":"python\u4e4b\u6a21\u5757 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"python\u4e4b\u6a21\u5757 \u4e00\u3001\u6a21\u5757\u7684\u4ecb\u7ecd\u7ec4\u7ec7python 1\u3001python\u6a21\u5757&#xff0c;\u662f\u4e00\u4e2apython\u6587\u4ef6&#xff0c;\u4e00\u4e2a.py\u6587\u4ef6&#xff0c;\u534a\u9163python\u5bf9\u8c61\u5b9a\u4e49\u548cpoytho\u8bed\u53e5 2\u3001\u6a21\u5757\u80fd\u591f\u6709\u903b\u8f91\u7684\u7ec4\u7ec7\u4ee3\u7801 3\u3001\u628a\u76f8\u5173\u7684\u4ee3\u7801\u5206\u914d\u5230\u4e00\u4e2a\u6a21\u5757\u91cc\u80fd\u8ba9\u4f60\u7684\u4ee3\u7801\u66f4\u597d\u7528&#xff0c;\u66f4\u6613\u61c2\u3002 4\u3001\u6a21\u5757\u80fd\u5b9a\u4e49\u51fd\u6570&#xff0c;\u7c7b\u548c\u53d8\u91cf&#xff0c;\u6a21\u5757\u91cc\u4e5f\u80fd\u5305\u542b\u53ef\u6267\u884c\u7684\u4ee3\u7801\u3002\u4e8c\u3001\u6a21\u5757\u7684\u5bfc\u5165 1\u3001import \u00a0\u6a21\u5757\u540d\u683c\u5f0f&#xff1a;\u6a21\u5757\u540d.\u51fd\u6570\u6848\u4f8b&amp;#xff","og_url":"https:\/\/www.wsisp.com\/helps\/109519.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-24T03:40:48+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\/109519.html","url":"https:\/\/www.wsisp.com\/helps\/109519.html","name":"python\u4e4b\u6a21\u5757 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-24T03:40:48+00:00","dateModified":"2026-09-24T03:40:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/109519.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/109519.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/109519.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"python\u4e4b\u6a21\u5757"}]},{"@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\/109519","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=109519"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109519\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=109519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=109519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=109519"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=109519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}