{"id":60958,"date":"2026-01-16T18:49:12","date_gmt":"2026-01-16T10:49:12","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/60958.html"},"modified":"2026-01-16T18:49:12","modified_gmt":"2026-01-16T10:49:12","slug":"%e7%8e%a9%e8%bd%ac-python-%e5%b8%b8%e7%94%a89-%e5%a4%a7%e6%a8%a1%e5%9d%97%ef%bc%9a%e6%9c%89%e4%bd%a0%e5%96%9c%e6%ac%a2%e7%9a%84%e5%90%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/60958.html","title":{"rendered":"\u73a9\u8f6c Python \u5e38\u75289 \u5927\u6a21\u5757\uff1a\u6709\u4f60\u559c\u6b22\u7684\u5417"},"content":{"rendered":"<p>Python \u7684\u5f3a\u5927\u4e4b\u5904&#xff0c;\u4e0d\u4ec5\u5728\u4e8e\u7b80\u6d01\u7684\u8bed\u6cd5&#xff0c;\u66f4\u5728\u4e8e\u4e30\u5bcc\u7684\u5185\u7f6e\u6a21\u5757 \u2014\u2014 \u5b83\u4eec\u5982\u540c \u201c\u9884\u5236\u5de5\u5177\u5e93\u201d&#xff0c;\u80fd\u5e2e\u6211\u4eec\u5feb\u901f\u5b9e\u73b0\u968f\u673a\u6570\u751f\u6210\u3001\u65e5\u671f\u5904\u7406\u3001\u6570\u636e\u8bfb\u5199\u3001\u56fe\u5f62\u7ed8\u5236\u7b49\u5e38\u89c1\u9700\u6c42&#xff0c;\u65e0\u9700\u91cd\u590d\u9020\u8f6e\u5b50\u3002\u672c\u6587\u805a\u7126 9 \u4e2a\u9ad8\u9891\u4f7f\u7528\u7684 Python \u6a21\u5757&#xff08;random\u3001keyword\u3001calendar\u3001string\u3001datetime\u3001csv\u3001json\u3001pickle\u3001turtle&#xff09;&#xff0c;\u901a\u8fc7 \u201c\u6a21\u5757\u5b9a\u4f4d &#043; \u6838\u5fc3\u65b9\u6cd5 &#043; \u5b9e\u6218\u6848\u4f8b\u201d \u7684\u5f62\u5f0f&#xff0c;\u8ba9\u4f60\u5feb\u901f\u638c\u63e1\u6bcf\u4e2a\u6a21\u5757\u7684\u6838\u5fc3\u7528\u6cd5\u3002<\/p>\n<h3>\u4e00\u3001random&#xff1a;\u751f\u6210\u968f\u673a\u6570\u7684 \u201c\u968f\u673a\u5de5\u5177\u7bb1\u201d<\/h3>\n<h4>\u6a21\u5757\u5b9a\u4f4d<\/h4>\n<p>\u4e13\u95e8\u7528\u4e8e\u751f\u6210\u968f\u673a\u6570\u3001\u968f\u673a\u9009\u62e9\u3001\u968f\u673a\u6253\u4e71\u5e8f\u5217&#xff0c;\u662f\u6e38\u620f\u5f00\u53d1\u3001\u6570\u636e\u62bd\u6837\u3001\u6a21\u62df\u6d4b\u8bd5\u7b49\u573a\u666f\u7684\u5fc5\u5907\u5de5\u5177\u3002<\/p>\n<h4>\u6838\u5fc3\u65b9\u6cd5\u53ca\u5b9e\u6218\u6848\u4f8b<\/h4>\n<p>import random<\/p>\n<p># 1. random()&#xff1a;\u751f\u62100~1\u4e4b\u95f4\u7684\u6d6e\u70b9\u6570&#xff08;\u5de6\u95ed\u53f3\u5f00&#xff09;<br \/>\nprint(random.random())  # \u8f93\u51fa\u793a\u4f8b&#xff1a;0.789456123<\/p>\n<p># 2. randint(a, b)&#xff1a;\u751f\u6210[a, b]\u8303\u56f4\u5185\u7684\u6574\u6570&#xff08;\u5305\u542b\u4e24\u7aef&#xff09;<br \/>\nprint(random.randint(1, 10))  # \u8f93\u51fa1~10\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570<\/p>\n<p># 3. choice(seq)&#xff1a;\u4ece\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20<br \/>\nfruits &#061; [&#034;\u82f9\u679c&#034;, &#034;\u9999\u8549&#034;, &#034;\u6a59\u5b50&#034;]<br \/>\nprint(random.choice(fruits))  # \u968f\u673a\u8f93\u51fa\u4e00\u4e2a\u6c34\u679c<\/p>\n<p># 4. shuffle(seq)&#xff1a;\u6253\u4e71\u5e8f\u5217&#xff08;\u539f\u5730\u4fee\u6539&#xff09;<br \/>\nnums &#061; [1, 2, 3, 4, 5]<br \/>\nrandom.shuffle(nums)<br \/>\nprint(nums)  # \u8f93\u51fa\u793a\u4f8b&#xff1a;[3, 1, 5, 2, 4]<\/p>\n<p># 5. sample(seq, k)&#xff1a;\u4ece\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u53d6k\u4e2a\u4e0d\u91cd\u590d\u5143\u7d20<br \/>\nprint(random.sample(nums, 2))  # \u4ecenums\u4e2d\u90092\u4e2a\u4e0d\u91cd\u590d\u5143\u7d20&#xff0c;\u793a\u4f8b&#xff1a;[5, 1]<\/p>\n<h3>\u4e8c\u3001keyword&#xff1a;\u6821\u9a8c Python \u5173\u952e\u5b57\u7684 \u201c\u5c0f\u52a9\u624b\u201d<\/h3>\n<h4>\u6a21\u5757\u5b9a\u4f4d<\/h4>\n<p>\u7528\u4e8e\u67e5\u770b Python \u7684\u5173\u952e\u5b57\u5217\u8868\u3001\u6821\u9a8c\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u5173\u952e\u5b57&#xff0c;\u907f\u514d\u53d8\u91cf\u540d \/ \u51fd\u6570\u540d\u4e0e\u5173\u952e\u5b57\u51b2\u7a81\u3002<\/p>\n<h4>\u6838\u5fc3\u65b9\u6cd5\u53ca\u5b9e\u6218\u6848\u4f8b<\/h4>\n<p>import keyword<\/p>\n<p># 1. kwlist&#xff1a;\u83b7\u53d6Python\u6240\u6709\u5173\u952e\u5b57\u5217\u8868<br \/>\nprint(keyword.kwlist)  # \u8f93\u51fa&#xff1a;[&#039;False&#039;, &#039;None&#039;, &#039;True&#039;, &#039;and&#039;, &#039;as&#039;, &#8230;]<\/p>\n<p># 2. iskeyword(s)&#xff1a;\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4e3aPython\u5173\u952e\u5b57<br \/>\nprint(keyword.iskeyword(&#034;if&#034;))  # \u8f93\u51fa&#xff1a;True<br \/>\nprint(keyword.iskeyword(&#034;hello&#034;))  # \u8f93\u51fa&#xff1a;False<\/p>\n<p># \u5b9e\u6218&#xff1a;\u6821\u9a8c\u53d8\u91cf\u540d\u662f\u5426\u5408\u6cd5&#xff08;\u907f\u514d\u5173\u952e\u5b57&#xff09;<br \/>\ndef check_var_name(name):<br \/>\n    if keyword.iskeyword(name):<br \/>\n        return f&#034;\u9519\u8bef&#xff1a;{name}\u662fPython\u5173\u952e\u5b57&#xff0c;\u4e0d\u80fd\u4f5c\u4e3a\u53d8\u91cf\u540d&#034;<br \/>\n    else:<br \/>\n        return f&#034;\u5408\u6cd5&#xff1a;{name}\u53ef\u4ee5\u4f5c\u4e3a\u53d8\u91cf\u540d&#034;<\/p>\n<p>print(check_var_name(&#034;for&#034;))  # \u8f93\u51fa&#xff1a;\u9519\u8bef&#xff1a;for\u662fPython\u5173\u952e\u5b57&#xff0c;\u4e0d\u80fd\u4f5c\u4e3a\u53d8\u91cf\u540d<br \/>\nprint(check_var_name(&#034;user_name&#034;))  # \u8f93\u51fa&#xff1a;\u5408\u6cd5&#xff1a;user_name\u53ef\u4ee5\u4f5c\u4e3a\u53d8\u91cf\u540d<\/p>\n<h3>\u4e09\u3001calendar&#xff1a;\u5904\u7406\u65e5\u5386\u7684 \u201c\u5168\u80fd\u5de5\u5177\u201d<\/h3>\n<h4>\u6a21\u5757\u5b9a\u4f4d<\/h4>\n<p>\u63d0\u4f9b\u65e5\u5386\u76f8\u5173\u7684\u64cd\u4f5c&#xff0c;\u5982\u751f\u6210\u6307\u5b9a\u5e74\u6708\u7684\u65e5\u5386\u3001\u5224\u65ad\u95f0\u5e74\u3001\u83b7\u53d6\u67d0\u6708\u5929\u6570\u7b49&#xff0c;\u9002\u7528\u4e8e\u65e5\u671f\u89c4\u5212\u7c7b\u573a\u666f\u3002<\/p>\n<h4>\u6838\u5fc3\u65b9\u6cd5\u53ca\u5b9e\u6218\u6848\u4f8b<\/h4>\n<p>import calendar<\/p>\n<p># 1. isleap(year)&#xff1a;\u5224\u65ad\u662f\u5426\u4e3a\u95f0\u5e74<br \/>\nprint(calendar.isleap(2024))  # 2024\u662f\u95f0\u5e74&#xff0c;\u8f93\u51fa&#xff1a;True<br \/>\nprint(calendar.isleap(2025))  # \u8f93\u51fa&#xff1a;False<\/p>\n<p># 2. monthrange(year, month)&#xff1a;\u8fd4\u56de\u6307\u5b9a\u5e74\u6708\u7684\u201c\u661f\u671f\u51e0\u5f00\u59cb\u201d\u548c\u201c\u5929\u6570\u201d<br \/>\n# \u6ce8&#xff1a;\u661f\u671f\u51e0\u75280&#xff08;\u5468\u4e00&#xff09;~6&#xff08;\u5468\u65e5&#xff09;\u8868\u793a&#xff08;\u4e0d\u540c\u7cfb\u7edf\u53ef\u80fd\u6709\u5dee\u5f02&#xff0c;\u9ed8\u8ba4\u5468\u4e00\u4e3a0&#xff09;<br \/>\nweek_start, day_count &#061; calendar.monthrange(2024, 2)<br \/>\nprint(f&#034;2024\u5e742\u6708\u4ece\u661f\u671f{week_start&#043;1}\u5f00\u59cb&#xff0c;\u5171{day_count}\u5929&#034;)  # \u8f93\u51fa&#xff1a;2024\u5e742\u6708\u4ece\u661f\u671f\u56db\u5f00\u59cb&#xff0c;\u517129\u5929<\/p>\n<p># 3. month(year, month)&#xff1a;\u751f\u6210\u6307\u5b9a\u5e74\u6708\u7684\u65e5\u5386\u5b57\u7b26\u4e32<br \/>\nprint(calendar.month(2024, 2))  # \u8f93\u51fa2024\u5e742\u6708\u7684\u65e5\u5386\u8868\u683c<\/p>\n<p># 4. prcal(year)&#xff1a;\u76f4\u63a5\u6253\u5370\u5168\u5e74\u65e5\u5386<br \/>\ncalendar.prcal(2024)  # \u63a7\u5236\u53f0\u8f93\u51fa2024\u5e74\u5b8c\u6574\u65e5\u5386<\/p>\n<h3>\u56db\u3001string&#xff1a;\u5904\u7406\u5b57\u7b26\u4e32\u7684 \u201c\u8f85\u52a9\u5e93\u201d<\/h3>\n<h4>\u6a21\u5757\u5b9a\u4f4d<\/h4>\n<p>\u63d0\u4f9b\u5b57\u7b26\u4e32\u76f8\u5173\u7684\u5e38\u91cf\u548c\u8f85\u52a9\u65b9\u6cd5&#xff0c;\u5982\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u6807\u70b9\u7b26\u53f7\u5e38\u91cf&#xff0c;\u7b80\u5316\u5b57\u7b26\u4e32\u5904\u7406\u903b\u8f91\u3002<\/p>\n<h4>\u6838\u5fc3\u65b9\u6cd5\u53ca\u5b9e\u6218\u6848\u4f8b<\/h4>\n<p>import string<\/p>\n<p># 1. \u5e38\u7528\u5e38\u91cf&#xff1a;\u5feb\u901f\u83b7\u53d6\u9884\u8bbe\u5b57\u7b26\u96c6<br \/>\nprint(string.ascii_letters)  # \u6240\u6709\u5927\u5c0f\u5199\u5b57\u6bcd&#xff1a;abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<br \/>\nprint(string.digits)         # \u6240\u6709\u6570\u5b57&#xff1a;0123456789<br \/>\nprint(string.punctuation)    # \u6240\u6709\u6807\u70b9\u7b26\u53f7&#xff1a;!&#064;#$%^&amp;*()_&#043;-&#061;[]{}|;&#039;:&#034;,.\/&lt;&gt;?<\/p>\n<p># 2. \u5b9e\u6218&#xff1a;\u751f\u6210\u968f\u673a\u9a8c\u8bc1\u7801&#xff08;6\u4f4d&#xff0c;\u5b57\u6bcd&#043;\u6570\u5b57&#xff09;<br \/>\nimport random<br \/>\ndef generate_verify_code(length&#061;6):<br \/>\n    # \u62fc\u63a5\u5b57\u6bcd\u548c\u6570\u5b57\u4f5c\u4e3a\u9a8c\u8bc1\u7801\u5b57\u7b26\u6c60<br \/>\n    char_pool &#061; string.ascii_letters &#043; string.digits<br \/>\n    # \u968f\u673a\u9009length\u4e2a\u5b57\u7b26\u5e76\u62fc\u63a5<br \/>\n    code &#061; &#039;&#039;.join(random.choice(char_pool) for _ in range(length))<br \/>\n    return code<\/p>\n<p>print(generate_verify_code())  # \u8f93\u51fa\u793a\u4f8b&#xff1a;8k9G7s<\/p>\n<h3>\u4e94\u3001datetime&#xff1a;\u5904\u7406\u65e5\u671f\u65f6\u95f4\u7684 \u201c\u6838\u5fc3\u6a21\u5757\u201d<\/h3>\n<h4>\u6a21\u5757\u5b9a\u4f4d<\/h4>\n<p>\u66ff\u4ee3 Python \u5185\u7f6e\u7684 time \u6a21\u5757&#xff0c;\u63d0\u4f9b\u66f4\u76f4\u89c2\u7684\u65e5\u671f\u3001\u65f6\u95f4\u5904\u7406\u65b9\u6cd5&#xff0c;\u652f\u6301\u65e5\u671f\u8ba1\u7b97\u3001\u683c\u5f0f\u8f6c\u6362&#xff0c;\u662f\u5904\u7406\u65f6\u95f4\u76f8\u5173\u9700\u6c42\u7684\u9996\u9009\u3002<\/p>\n<h4>\u6838\u5fc3\u65b9\u6cd5\u53ca\u5b9e\u6218\u6848\u4f8b<\/h4>\n<p>from datetime import datetime, date, timedelta<\/p>\n<p># 1. \u83b7\u53d6\u5f53\u524d\u65e5\u671f\u65f6\u95f4<br \/>\nnow &#061; datetime.now()<br \/>\nprint(now)  # \u8f93\u51fa\u793a\u4f8b&#xff1a;2026-01-16 15:30:20.123456<br \/>\ntoday &#061; date.today()<br \/>\nprint(today)  # \u8f93\u51fa\u793a\u4f8b&#xff1a;2026-01-16<\/p>\n<p># 2. \u65e5\u671f\u65f6\u95f4\u683c\u5f0f\u5316&#xff08;strftime&#xff09;<br \/>\nprint(now.strftime(&#034;%Y-%m-%d %H:%M:%S&#034;))  # \u8f93\u51fa&#xff1a;2026-01-16 15:30:20<br \/>\nprint(now.strftime(&#034;%Y\u5e74%m\u6708%d\u65e5&#034;))        # \u8f93\u51fa&#xff1a;2026\u5e7401\u670816\u65e5<\/p>\n<p># 3. \u5b57\u7b26\u4e32\u8f6c\u65e5\u671f\u65f6\u95f4&#xff08;strptime&#xff09;<br \/>\ndate_str &#061; &#034;2024-08-01&#034;<br \/>\ndate_obj &#061; datetime.strptime(date_str, &#034;%Y-%m-%d&#034;)<br \/>\nprint(date_obj)  # \u8f93\u51fa&#xff1a;2024-08-01 00:00:00<\/p>\n<p># 4. \u65e5\u671f\u8ba1\u7b97&#xff08;timedelta&#xff09;<br \/>\n# \u83b7\u53d67\u5929\u540e\u7684\u65e5\u671f<br \/>\nnext_week &#061; today &#043; timedelta(days&#061;7)<br \/>\nprint(next_week)  # \u8f93\u51fa\u793a\u4f8b&#xff1a;2026-01-23<br \/>\n# \u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u7684\u5dee\u503c<br \/>\ndelta &#061; next_week &#8211; today<br \/>\nprint(delta.days)  # \u8f93\u51fa&#xff1a;7<\/p>\n<h3>\u516d\u3001csv&#xff1a;\u8bfb\u5199 CSV \u6587\u4ef6\u7684 \u201c\u8f7b\u91cf\u5de5\u5177\u201d<\/h3>\n<h4>\u6a21\u5757\u5b9a\u4f4d<\/h4>\n<p>\u4e13\u95e8\u7528\u4e8e\u5904\u7406 CSV&#xff08;\u9017\u53f7\u5206\u9694\u503c&#xff09;\u6587\u4ef6&#xff0c;\u652f\u6301\u884c\u7ea7\u8bfb\u5199&#xff0c;\u662f\u6570\u636e\u6e05\u6d17\u3001\u6279\u91cf\u6570\u636e\u5bfc\u5165\u5bfc\u51fa\u7684\u5e38\u7528\u5de5\u5177&#xff08;\u65e0\u9700\u7b2c\u4e09\u65b9\u5e93&#xff09;\u3002<\/p>\n<h4>\u6838\u5fc3\u65b9\u6cd5\u53ca\u5b9e\u6218\u6848\u4f8b<\/h4>\n<h5>1. \u5199\u5165 CSV \u6587\u4ef6<\/h5>\n<p>import csv<\/p>\n<p># \u6570\u636e\u51c6\u5907<br \/>\nheader &#061; [&#034;\u59d3\u540d&#034;, &#034;\u5e74\u9f84&#034;, &#034;\u57ce\u5e02&#034;]<br \/>\nrows &#061; [<br \/>\n    [&#034;\u5f20\u4e09&#034;, 18, &#034;\u5317\u4eac&#034;],<br \/>\n    [&#034;\u674e\u56db&#034;, 20, &#034;\u4e0a\u6d77&#034;],<br \/>\n    [&#034;\u738b\u4e94&#034;, 19, &#034;\u5e7f\u5dde&#034;]<br \/>\n]<\/p>\n<p># \u5199\u5165CSV<br \/>\nwith open(&#034;students.csv&#034;, &#034;w&#034;, encoding&#061;&#034;utf-8&#034;, newline&#061;&#034;&#034;) as f:<br \/>\n    # \u521b\u5efa\u5199\u5165\u5bf9\u8c61<br \/>\n    writer &#061; csv.writer(f)<br \/>\n    # \u5199\u5165\u8868\u5934<br \/>\n    writer.writerow(header)<br \/>\n    # \u5199\u5165\u591a\u884c\u6570\u636e<br \/>\n    writer.writerows(rows)<\/p>\n<p>2. \u8bfb\u53d6 CSV \u6587\u4ef6<\/p>\n<p>import csv<\/p>\n<p># \u8bfb\u53d6CSV<br \/>\nwith open(&#034;students.csv&#034;, &#034;r&#034;, encoding&#061;&#034;utf-8&#034;) as f:<br \/>\n    # \u521b\u5efa\u8bfb\u53d6\u5bf9\u8c61<br \/>\n    reader &#061; csv.reader(f)<br \/>\n    # \u904d\u5386\u6bcf\u4e00\u884c<br \/>\n    for row in reader:<br \/>\n        print(row)  # \u8f93\u51fa\u793a\u4f8b&#xff1a;[&#039;\u59d3\u540d&#039;, &#039;\u5e74\u9f84&#039;, &#039;\u57ce\u5e02&#039;]\u3001[&#039;\u5f20\u4e09&#039;, &#039;18&#039;, &#039;\u5317\u4eac&#039;]&#8230;<\/p>\n<p># \u66f4\u4fbf\u6377&#xff1a;\u6309\u5b57\u5178\u683c\u5f0f\u8bfb\u53d6&#xff08;\u8868\u5934\u4e3a\u952e&#xff09;<br \/>\nwith open(&#034;students.csv&#034;, &#034;r&#034;, encoding&#061;&#034;utf-8&#034;) as f:<br \/>\n    dict_reader &#061; csv.DictReader(f)<br \/>\n    for row in dict_reader:<br \/>\n        print(f&#034;\u59d3\u540d&#xff1a;{row[&#039;\u59d3\u540d&#039;]}&#xff0c;\u5e74\u9f84&#xff1a;{row[&#039;\u5e74\u9f84&#039;]}&#034;)<\/p>\n<h3>\u4e03\u3001json&#xff1a;\u5904\u7406 JSON \u6570\u636e\u7684 \u201c\u6807\u51c6\u6a21\u5757\u201d<\/h3>\n<h4>\u6a21\u5757\u5b9a\u4f4d<\/h4>\n<p>\u7528\u4e8e JSON \u5b57\u7b26\u4e32\u4e0e Python \u6570\u636e\u7c7b\u578b&#xff08;dict\u3001list \u7b49&#xff09;\u7684\u76f8\u4e92\u8f6c\u6362&#xff0c;\u662f\u63a5\u53e3\u5f00\u53d1\u3001\u914d\u7f6e\u6587\u4ef6\u8bfb\u5199\u7684\u6838\u5fc3\u5de5\u5177\u3002<\/p>\n<h4>\u6838\u5fc3\u65b9\u6cd5\u53ca\u5b9e\u6218\u6848\u4f8b<\/h4>\n<p>import json<\/p>\n<p># 1. Python\u5bf9\u8c61\u8f6cJSON\u5b57\u7b26\u4e32&#xff08;dumps&#xff09;<br \/>\ndata &#061; {<br \/>\n    &#034;name&#034;: &#034;\u8d75\u516d&#034;,<br \/>\n    &#034;age&#034;: 22,<br \/>\n    &#034;hobbies&#034;: [&#034;\u7bee\u7403&#034;, &#034;\u7f16\u7a0b&#034;],<br \/>\n    &#034;is_student&#034;: True<br \/>\n}<br \/>\n# ensure_ascii&#061;False&#xff1a;\u4fdd\u7559\u4e2d\u6587&#xff1b;indent&#061;4&#xff1a;\u683c\u5f0f\u5316\u8f93\u51fa<br \/>\njson_str &#061; json.dumps(data, ensure_ascii&#061;False, indent&#061;4)<br \/>\nprint(json_str)<br \/>\n# \u8f93\u51fa&#xff1a;<br \/>\n# {<br \/>\n#     &#034;name&#034;: &#034;\u8d75\u516d&#034;,<br \/>\n#     &#034;age&#034;: 22,<br \/>\n#     &#034;hobbies&#034;: [&#034;\u7bee\u7403&#034;, &#034;\u7f16\u7a0b&#034;],<br \/>\n#     &#034;is_student&#034;: true<br \/>\n# }<\/p>\n<p># 2. JSON\u5b57\u7b26\u4e32\u8f6cPython\u5bf9\u8c61&#xff08;loads&#xff09;<br \/>\nnew_data &#061; json.loads(json_str)<br \/>\nprint(new_data[&#034;hobbies&#034;][0])  # \u8f93\u51fa&#xff1a;\u7bee\u7403<\/p>\n<p># 3. \u8bfb\u5199JSON\u6587\u4ef6<br \/>\n# \u5199\u5165<br \/>\nwith open(&#034;user.json&#034;, &#034;w&#034;, encoding&#061;&#034;utf-8&#034;) as f:<br \/>\n    json.dump(data, f, ensure_ascii&#061;False, indent&#061;4)<\/p>\n<p># \u8bfb\u53d6<br \/>\nwith open(&#034;user.json&#034;, &#034;r&#034;, encoding&#061;&#034;utf-8&#034;) as f:<br \/>\n    load_data &#061; json.load(f)<br \/>\nprint(load_data[&#034;name&#034;])  # \u8f93\u51fa&#xff1a;\u8d75\u516d<\/p>\n<h3>\u516b\u3001pickle&#xff1a;Python \u5bf9\u8c61\u5e8f\u5217\u5316\u7684 \u201c\u4e13\u5c5e\u5de5\u5177\u201d<\/h3>\n<h4>\u6a21\u5757\u5b9a\u4f4d<\/h4>\n<p>\u5b9e\u73b0 Python \u5bf9\u8c61\u7684\u5e8f\u5217\u5316&#xff08;\u5c06\u5bf9\u8c61\u8f6c\u4e3a\u4e8c\u8fdb\u5236&#xff09;\u548c\u53cd\u5e8f\u5217\u5316&#xff08;\u4e8c\u8fdb\u5236\u8f6c\u56de\u5bf9\u8c61&#xff09;&#xff0c;\u53ef\u4fdd\u5b58\u5217\u8868\u3001\u5b57\u5178\u3001\u7c7b\u5b9e\u4f8b\u7b49\u590d\u6742\u5bf9\u8c61&#xff08;\u4ec5 Python \u53ef\u7528&#xff09;\u3002<\/p>\n<h4>\u6838\u5fc3\u65b9\u6cd5\u53ca\u5b9e\u6218\u6848\u4f8b<\/h4>\n<p>import pickle<\/p>\n<p># 1. \u5e8f\u5217\u5316&#xff1a;Python\u5bf9\u8c61\u8f6c\u4e8c\u8fdb\u5236\u5e76\u4fdd\u5b58\u5230\u6587\u4ef6<br \/>\ndata &#061; {<br \/>\n    &#034;scores&#034;: [90, 85, 95],<br \/>\n    &#034;info&#034;: {&#034;class&#034;: &#034;\u4e00\u73ed&#034;, &#034;teacher&#034;: &#034;\u674e\u8001\u5e08&#034;}<br \/>\n}<\/p>\n<p># \u5199\u5165\u4e8c\u8fdb\u5236\u6587\u4ef6&#xff08;\u540e\u7f00\u901a\u5e38\u4e3a.pkl&#xff09;<br \/>\nwith open(&#034;data.pkl&#034;, &#034;wb&#034;) as f:<br \/>\n    pickle.dump(data, f)<\/p>\n<p># 2. \u53cd\u5e8f\u5217\u5316&#xff1a;\u4ece\u4e8c\u8fdb\u5236\u6587\u4ef6\u6062\u590dPython\u5bf9\u8c61<br \/>\nwith open(&#034;data.pkl&#034;, &#034;rb&#034;) as f:<br \/>\n    loaded_data &#061; pickle.load(f)<\/p>\n<p>print(loaded_data[&#034;scores&#034;])  # \u8f93\u51fa&#xff1a;[90, 85, 95]<br \/>\nprint(loaded_data[&#034;info&#034;][&#034;teacher&#034;])  # \u8f93\u51fa&#xff1a;\u674e\u8001\u5e08<\/p>\n<p>\u6ce8\u610f&#xff1a;pickle \u4ec5\u9002\u7528\u4e8e Python \u73af\u5883&#xff0c;\u4e14\u4e0d\u8981\u52a0\u8f7d\u672a\u77e5\u6765\u6e90\u7684.pkl \u6587\u4ef6&#xff08;\u5b58\u5728\u5b89\u5168\u98ce\u9669&#xff09;\u3002<\/p>\n<h3>\u4e5d\u3001turtle&#xff1a;\u7ed8\u5236\u56fe\u5f62\u7684 \u201c\u8da3\u5473\u5de5\u5177\u201d<\/h3>\n<h4>\u6a21\u5757\u5b9a\u4f4d<\/h4>\n<p>Python \u5185\u7f6e\u7684\u7ed8\u56fe\u5e93&#xff08;\u57fa\u4e8e Tkinter&#xff09;&#xff0c;\u901a\u8fc7\u63a7\u5236 \u201c\u6d77\u9f9f\u201d \u7684\u79fb\u52a8\u8f68\u8ff9\u7ed8\u5236\u56fe\u5f62&#xff0c;\u9002\u5408\u5165\u95e8\u7f16\u7a0b\u53ef\u89c6\u5316\u3001\u8da3\u5473\u7f16\u7a0b\u6559\u5b66\u3002<\/p>\n<h4>\u6838\u5fc3\u65b9\u6cd5\u53ca\u5b9e\u6218\u6848\u4f8b&#xff08;\u7ed8\u5236\u4e94\u89d2\u661f&#xff09;<\/h4>\n<p>import turtle<\/p>\n<p># \u521b\u5efa\u7ed8\u56fe\u7a97\u53e3<br \/>\nwindow &#061; turtle.Screen()<br \/>\nwindow.title(&#034;\u7ed8\u5236\u4e94\u89d2\u661f&#034;)<br \/>\n# \u521b\u5efa\u6d77\u9f9f\u5bf9\u8c61<br \/>\nt &#061; turtle.Turtle()<br \/>\nt.speed(2)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6&#xff08;1\u6700\u6162&#xff0c;10\u6700\u5feb&#xff09;<br \/>\nt.color(&#034;red&#034;, &#034;yellow&#034;)  # \u753b\u7b14\u989c\u8272\u7ea2\u8272&#xff0c;\u586b\u5145\u989c\u8272\u9ec4\u8272<\/p>\n<p># \u5f00\u59cb\u586b\u5145<br \/>\nt.begin_fill()<br \/>\n# \u7ed8\u5236\u4e94\u89d2\u661f&#xff08;\u5faa\u73af5\u6b21&#xff0c;\u6bcf\u6b21\u524d\u8fdb100&#xff0c;\u53f3\u8f6c144\u5ea6&#xff09;<br \/>\nfor _ in range(5):<br \/>\n    t.forward(100)<br \/>\n    t.right(144)<br \/>\n# \u7ed3\u675f\u586b\u5145<br \/>\nt.end_fill()<\/p>\n<p># \u9690\u85cf\u6d77\u9f9f<br \/>\nt.hideturtle()<br \/>\n# \u4fdd\u6301\u7a97\u53e3&#xff08;\u70b9\u51fb\u5173\u95ed&#xff09;<br \/>\nturtle.done()<\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>Python \u8fd9 9 \u4e2a\u5e38\u7528\u6a21\u5757\u8986\u76d6\u4e86\u968f\u673a\u5904\u7406\u3001\u65e5\u671f\u65f6\u95f4\u3001\u6570\u636e\u8bfb\u5199\u3001\u56fe\u5f62\u7ed8\u5236\u7b49\u6838\u5fc3\u573a\u666f&#xff0c;\u638c\u63e1\u5b83\u4eec\u7684\u6838\u5fc3\u65b9\u6cd5\u80fd\u5927\u5e45\u63d0\u5347\u7f16\u7a0b\u6548\u7387&#xff1a;<\/p>\n<li>\u57fa\u7840\u5de5\u5177\u7c7b&#xff08;random\/keyword\/calendar\/string&#xff09;&#xff1a;\u89e3\u51b3\u968f\u673a\u6570\u3001\u5173\u952e\u5b57\u6821\u9a8c\u3001\u65e5\u5386\u3001\u5b57\u7b26\u4e32\u5904\u7406\u7b49\u57fa\u7840\u9700\u6c42&#xff1b;<\/li>\n<li>\u6570\u636e\u5904\u7406\u7c7b&#xff08;datetime\/csv\/json\/pickle&#xff09;&#xff1a;\u805a\u7126\u65e5\u671f\u8ba1\u7b97\u3001\u7ed3\u6784\u5316\u6570\u636e\u8bfb\u5199&#xff0c;\u662f\u6570\u636e\u5904\u7406\u7684\u6838\u5fc3&#xff1b;<\/li>\n<li>\u8da3\u5473\u53ef\u89c6\u5316&#xff08;turtle&#xff09;&#xff1a;\u901a\u8fc7\u7ed8\u56fe\u76f4\u89c2\u7406\u89e3\u7f16\u7a0b\u903b\u8f91&#xff0c;\u9002\u5408\u5165\u95e8\u7ec3\u4e60\u3002<\/li>\n<p>\u6bcf\u4e2a\u6a21\u5757\u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e \u201c\u590d\u7528\u201d\u2014\u2014 \u65e0\u9700\u4ece\u96f6\u5b9e\u73b0\u590d\u6742\u903b\u8f91&#xff0c;\u53ea\u9700\u8c03\u7528\u5185\u7f6e\u65b9\u6cd5\u5373\u53ef\u5feb\u901f\u5b8c\u6210\u9700\u6c42\u3002\u5efa\u8bae\u7ed3\u5408\u6848\u4f8b\u52a8\u624b\u5b9e\u64cd&#xff0c;\u80fd\u66f4\u5feb\u638c\u63e1\u6a21\u5757\u7684\u4f7f\u7528\u573a\u666f\u548c\u6280\u5de7\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python \u7684\u5f3a\u5927\u4e4b\u5904&#xff0c;\u4e0d\u4ec5\u5728\u4e8e\u7b80\u6d01\u7684\u8bed\u6cd5&#xff0c;\u66f4\u5728\u4e8e\u4e30\u5bcc\u7684\u5185\u7f6e\u6a21\u5757 \u2014\u2014 \u5b83\u4eec\u5982\u540c \u201c\u9884\u5236\u5de5\u5177\u5e93\u201d&#xff0c;\u80fd\u5e2e\u6211\u4eec\u5feb\u901f\u5b9e\u73b0\u968f\u673a\u6570\u751f\u6210\u3001\u65e5\u671f\u5904\u7406\u3001\u6570\u636e\u8bfb\u5199\u3001\u56fe\u5f62\u7ed8\u5236\u7b49\u5e38\u89c1\u9700\u6c42&#xff0c;\u65e0\u9700\u91cd\u590d\u9020\u8f6e\u5b50\u3002\u672c\u6587\u805a\u7126 9 \u4e2a\u9ad8\u9891\u4f7f\u7528\u7684 Python \u6a21\u5757&#xff08;random\u3001keyword\u3001calendar\u3001string\u3001datetime\u3001csv\u3001json\u3001pickle\u3001turtle&#xff09;&#xff0c;\u901a\u8fc7 \u201c\u6a21\u5757\u5b9a\u4f4d  \u6838<\/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,190],"topic":[],"class_list":["post-60958","post","type-post","status-publish","format-standard","hentry","category-server","tag-python","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u73a9\u8f6c Python \u5e38\u75289 \u5927\u6a21\u5757\uff1a\u6709\u4f60\u559c\u6b22\u7684\u5417 - \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\/60958.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u73a9\u8f6c Python \u5e38\u75289 \u5927\u6a21\u5757\uff1a\u6709\u4f60\u559c\u6b22\u7684\u5417 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Python \u7684\u5f3a\u5927\u4e4b\u5904&#xff0c;\u4e0d\u4ec5\u5728\u4e8e\u7b80\u6d01\u7684\u8bed\u6cd5&#xff0c;\u66f4\u5728\u4e8e\u4e30\u5bcc\u7684\u5185\u7f6e\u6a21\u5757 \u2014\u2014 \u5b83\u4eec\u5982\u540c \u201c\u9884\u5236\u5de5\u5177\u5e93\u201d&#xff0c;\u80fd\u5e2e\u6211\u4eec\u5feb\u901f\u5b9e\u73b0\u968f\u673a\u6570\u751f\u6210\u3001\u65e5\u671f\u5904\u7406\u3001\u6570\u636e\u8bfb\u5199\u3001\u56fe\u5f62\u7ed8\u5236\u7b49\u5e38\u89c1\u9700\u6c42&#xff0c;\u65e0\u9700\u91cd\u590d\u9020\u8f6e\u5b50\u3002\u672c\u6587\u805a\u7126 9 \u4e2a\u9ad8\u9891\u4f7f\u7528\u7684 Python \u6a21\u5757&#xff08;random\u3001keyword\u3001calendar\u3001string\u3001datetime\u3001csv\u3001json\u3001pickle\u3001turtle&#xff09;&#xff0c;\u901a\u8fc7 \u201c\u6a21\u5757\u5b9a\u4f4d \u6838\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/60958.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-16T10:49:12+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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60958.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/60958.html\",\"name\":\"\u73a9\u8f6c Python \u5e38\u75289 \u5927\u6a21\u5757\uff1a\u6709\u4f60\u559c\u6b22\u7684\u5417 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-16T10:49:12+00:00\",\"dateModified\":\"2026-01-16T10:49:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/60958.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/60958.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60958.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u73a9\u8f6c Python \u5e38\u75289 \u5927\u6a21\u5757\uff1a\u6709\u4f60\u559c\u6b22\u7684\u5417\"}]},{\"@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":"\u73a9\u8f6c Python \u5e38\u75289 \u5927\u6a21\u5757\uff1a\u6709\u4f60\u559c\u6b22\u7684\u5417 - \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\/60958.html","og_locale":"zh_CN","og_type":"article","og_title":"\u73a9\u8f6c Python \u5e38\u75289 \u5927\u6a21\u5757\uff1a\u6709\u4f60\u559c\u6b22\u7684\u5417 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Python \u7684\u5f3a\u5927\u4e4b\u5904&#xff0c;\u4e0d\u4ec5\u5728\u4e8e\u7b80\u6d01\u7684\u8bed\u6cd5&#xff0c;\u66f4\u5728\u4e8e\u4e30\u5bcc\u7684\u5185\u7f6e\u6a21\u5757 \u2014\u2014 \u5b83\u4eec\u5982\u540c \u201c\u9884\u5236\u5de5\u5177\u5e93\u201d&#xff0c;\u80fd\u5e2e\u6211\u4eec\u5feb\u901f\u5b9e\u73b0\u968f\u673a\u6570\u751f\u6210\u3001\u65e5\u671f\u5904\u7406\u3001\u6570\u636e\u8bfb\u5199\u3001\u56fe\u5f62\u7ed8\u5236\u7b49\u5e38\u89c1\u9700\u6c42&#xff0c;\u65e0\u9700\u91cd\u590d\u9020\u8f6e\u5b50\u3002\u672c\u6587\u805a\u7126 9 \u4e2a\u9ad8\u9891\u4f7f\u7528\u7684 Python \u6a21\u5757&#xff08;random\u3001keyword\u3001calendar\u3001string\u3001datetime\u3001csv\u3001json\u3001pickle\u3001turtle&#xff09;&#xff0c;\u901a\u8fc7 \u201c\u6a21\u5757\u5b9a\u4f4d \u6838","og_url":"https:\/\/www.wsisp.com\/helps\/60958.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-16T10:49:12+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/60958.html","url":"https:\/\/www.wsisp.com\/helps\/60958.html","name":"\u73a9\u8f6c Python \u5e38\u75289 \u5927\u6a21\u5757\uff1a\u6709\u4f60\u559c\u6b22\u7684\u5417 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-16T10:49:12+00:00","dateModified":"2026-01-16T10:49:12+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/60958.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/60958.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/60958.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u73a9\u8f6c Python \u5e38\u75289 \u5927\u6a21\u5757\uff1a\u6709\u4f60\u559c\u6b22\u7684\u5417"}]},{"@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\/60958","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=60958"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/60958\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=60958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=60958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=60958"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=60958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}