{"id":2067,"date":"2026-05-11T21:24:36","date_gmt":"2026-05-11T13:24:36","guid":{"rendered":"https:\/\/dianshudata.com\/story\/2026\/05\/11\/xiaohongshu-viral-content-analysis\/"},"modified":"2026-05-11T21:24:37","modified_gmt":"2026-05-11T13:24:37","slug":"xiaohongshu-viral-content-analysis","status":"publish","type":"post","link":"https:\/\/dianshudata.com\/story\/2026\/05\/11\/xiaohongshu-viral-content-analysis\/","title":{"rendered":"\u6570\u636e\u9a71\u52a8\u7684\u7206\u6b3e\u5bc6\u7801\uff1a\u6211\u7528Python\u548c10\u4e07\u6761\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u6570\u636e\u96c6\uff0c\u89e3\u6784\u4e86\u7206\u6b3e\u7b14\u8bb0\u7684\u7ec8\u6781\u516c\u5f0f"},"content":{"rendered":"<p>\u6458\u8981 \uff1a\u672c\u6587\u57fa\u4e8e\u4e00\u4efd10\u4e07\u6761\u7684\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u6570\u636e\u96c6\uff0c\u5c1d\u8bd5\u8fd0\u7528\u6570\u636e\u79d1\u5b66\u65b9\u6cd5\u6316\u6398\u7206\u6b3e\u5185\u5bb9\u7684\u6f5c\u5728\u89c4\u5f8b\uff0c\u5e76\u63a2\u7d22\u6784\u5efa\u4e00\u4e2a\u53ef\u91cf\u5316\u7684\u7206\u6b3e\u6807\u9898\u751f\u6210\u601d\u8def\u3002\u200b\u200b\u9700\u8981\u7279\u522b\u8bf4\u660e\u7684\u662f\uff0c\u672c\u6587\u7684\u6240\u6709\u7ed3\u8bba\u548c\u6a21\u578b\u5747\u6e90\u4e8e\u5bf9\u8fd910\u4e07\u6761\u7279\u5b9a\u6570\u636e\u7684\u5206\u6790\uff0c\u5176\u666e\u9002\u6027&#8230;<\/p>\n<h1>\u6570\u636e\u9a71\u52a8\u7684\u7206\u6b3e\u5bc6\u7801\uff1a\u6211\u7528Python\u548c10\u4e07\u6761\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u6570\u636e\u96c6\uff0c\u89e3\u6784\u4e86\u7206\u6b3e\u7b14\u8bb0\u7684\u7ec8\u6781\u516c\u5f0f<\/h1>\n<blockquote>\n<p><strong>\u6458\u8981<\/strong> \uff1a\u672c\u6587\u57fa\u4e8e\u4e00\u4efd10\u4e07\u6761\u7684\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u6570\u636e\u96c6\uff0c\u5c1d\u8bd5\u8fd0\u7528\u6570\u636e\u79d1\u5b66\u65b9\u6cd5\u6316\u6398\u7206\u6b3e\u5185\u5bb9\u7684\u6f5c\u5728\u89c4\u5f8b\uff0c\u5e76\u63a2\u7d22\u6784\u5efa\u4e00\u4e2a\u53ef\u91cf\u5316\u7684\u7206\u6b3e\u6807\u9898\u751f\u6210\u601d\u8def\u3002\u200b\u200b\u9700\u8981\u7279\u522b\u8bf4\u660e\u7684\u662f\uff0c\u672c\u6587\u7684\u6240\u6709\u7ed3\u8bba\u548c\u6a21\u578b\u5747\u6e90\u4e8e\u5bf9\u8fd910\u4e07\u6761\u7279\u5b9a\u6570\u636e\u7684\u5206\u6790\uff0c\u5176\u666e\u9002\u6027\u53ef\u80fd\u5b58\u5728\u5c40\u9650\uff0c\u5206\u6790\u7ed3\u679c\u4ec5\u4f9b\u53c2\u8003\u3002\u200b\u200b \u672c\u6587\u7684\u6838\u5fc3\u76ee\u7684\u66f4\u4fa7\u91cd\u4e8e\u5b8c\u6574\u5730\u5c55\u793a\u4ece\u6570\u636e\u51c6\u5907\u3001\u7279\u5f81\u5de5\u7a0b\u5230\u7edf\u8ba1\u5206\u6790\u3001\u673a\u5668\u5b66\u4e60\u5efa\u6a21\u7684\u5168\u8fc7\u7a0b\uff0c\u5206\u4eab\u4e00\u79cd\u6570\u636e\u9a71\u52a8\u5185\u5bb9\u521b\u4f5c\u7684\u5206\u6790\u65b9\u6cd5\u548c\u601d\u8def\uff0c\u800c\u975e\u63d0\u4f9b\u4e00\u4e2a\u653e\u4e4b\u56db\u6d77\u800c\u7686\u51c6\u7684\u201c\u7206\u6b3e\u5b9a\u5f8b\u201d\u3002<\/p>\n<h3>\u53c2\u8003\u6570\u636e\uff1a<a href=\"https:\/\/dianshudata.com\/dataDetail\/13711\">10\u4e07\u6761\u5c0f\u7ea2\u4e66\u6570\u636e<\/a><\/h3>\n<\/blockquote>\n<h3>\u5f15\u8a00\uff1a\u4ece\u95ee\u9898\u51fa\u53d1<\/h3>\n<p>\u6bcf\u4e2a\u521b\u4f5c\u8005\u548c\u8fd0\u8425\u8005\u90fd\u9762\u4e34\u540c\u4e00\u4e2a\u6838\u5fc3\u75db\u70b9\uff1a <strong>\u7206\u6b3e\u5185\u5bb9\u662f\u5426\u6709\u89c4\u5f8b\u53ef\u5faa\uff1f<\/strong><\/p>\n<p>\u5728\u5185\u5bb9\u521b\u4f5c\u9886\u57df\uff0c\u6211\u4eec\u7ecf\u5e38\u542c\u5230&#8221;\u7206\u6b3e\u9760\u8fd0\u6c14&#8221;\u7684\u8bf4\u6cd5\uff0c\u4f46\u4f5c\u4e3a\u4e00\u540d\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u6211\u59cb\u7ec8\u76f8\u4fe1\uff1a <strong>\u4efb\u4f55\u73b0\u8c61\u80cc\u540e\u90fd\u6709\u6570\u636e\u53ef\u5faa\u7684\u89c4\u5f8b<\/strong> \u3002<\/p>\n<p>\u4e3a\u6b64\uff0c\u6211\u6536\u96c6\u4e86\u4e00\u4e2a\u5305\u542b\u6807\u9898\u3001\u6b63\u6587\u3001\u6807\u7b7e\u3001\u4e92\u52a8\u91cf\u7b49\u5b57\u6bb5\u768410\u4e07\u6761\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u6570\u636e\u96c6\uff0c\u8fd0\u7528Python\u548c\u673a\u5668\u5b66\u4e60\u6280\u672f\uff0c\u4e0d\u4ec5\u544a\u8bc9\u60a8\u7206\u6b3e\u662f\u4ec0\u4e48\uff0c\u66f4\u5c55\u793a\u6211\u5982\u4f55\u7528\u6570\u636e\u5206\u6790\u548c\u673a\u5668\u5b66\u4e60\u7684\u65b9\u6cd5\u628a\u5b83\u91cf\u5316\u51fa\u6765\u3002<\/p>\n<h3>\u7b2c\u4e00\u90e8\u5206\uff1a\u6570\u636e\u51c6\u5907\u4e0e\u5b9a\u4e49&#8221;\u7206\u6b3e&#8221;<\/h3>\n<h4>\u6570\u636e\u52a0\u8f7d\u4e0e\u9884\u89c8<\/h4>\n<pre><code># \u5bfc\u5165\u5fc5\u8981\u7684\u5e93\nimport pandas as pd  # \u6570\u636e\u5904\u7406\u548c\u5206\u6790\nimport json  # JSON\u6570\u636e\u89e3\u6790\nimport numpy as np  # \u6570\u503c\u8ba1\u7b97\nfrom collections import Counter  # \u8bcd\u9891\u7edf\u8ba1\nimport jieba  # \u4e2d\u6587\u5206\u8bcd\nimport matplotlib.pyplot as plt  # \u57fa\u7840\u7ed8\u56fe\nimport seaborn as sns  # \u7edf\u8ba1\u56fe\u8868\nfrom wordcloud import WordCloud  # \u8bcd\u4e91\u56fe\u751f\u6210\nimport warnings\nwarnings.filterwarnings('ignore')  # \u5ffd\u7565\u8b66\u544a\u4fe1\u606f\n\ndef load_xiaohongshu_data(file_path):\n    \"\"\"\n    \u52a0\u8f7d\u5c0f\u7ea2\u4e66JSON\u6570\u636e\u5e76\u8f6c\u6362\u4e3aDataFrame\n\n    Args:\n        file_path (str): JSON\u6587\u4ef6\u8def\u5f84\n\n    Returns:\n        pd.DataFrame: \u5305\u542b\u7b14\u8bb0\u4fe1\u606f\u7684DataFrame\n    \"\"\"\n    data = []\n    print(\"\u6b63\u5728\u52a0\u8f7d\u6570\u636e...\")\n\n    with open(file_path, 'r', encoding='utf-8') as f:\n        for i, line in enumerate(f):\n            # \u6bcf\u5904\u740610000\u6761\u6570\u636e\u663e\u793a\u8fdb\u5ea6\n            if i % 10000 == 0:\n                print(f\"\u5df2\u5904\u7406 {i} \u6761\u6570\u636e...\")\n\n            try:\n                # \u89e3\u6790JSON\u6570\u636e\n                item = json.loads(line.strip())\n\n                # \u63d0\u53d6\u5173\u952e\u5b57\u6bb5\uff0c\u4f7f\u7528get\u65b9\u6cd5\u907f\u514dKeyError\n                record = {\n                    'id': item['id'],  # \u7b14\u8bb0\u552f\u4e00\u6807\u8bc6\n                    'title': item['data'].get('title', ''),  # \u7b14\u8bb0\u6807\u9898\n                    'content': item['data'].get('content', ''),  # \u7b14\u8bb0\u6b63\u6587\u5185\u5bb9\n                    'like_count': item['data'].get('like_count', 0),  # \u70b9\u8d5e\u6570\n                    'collection_count': item['data'].get('collection_count', 0),  # \u6536\u85cf\u6570\n                    'share_count': item['data'].get('share_count', 0),  # \u5206\u4eab\u6570\n                    'reply_count': item['data'].get('reply_count', 0),  # \u8bc4\u8bba\u6570\n                    'visit_count': item['data'].get('visit_count', 0),  # \u8bbf\u95ee\u6570\n                    'publisher': item['data'].get('publisher', {}).get('name', ''),  # \u53d1\u5e03\u8005\u540d\u79f0\n                    'user_followers': item['data'].get('user', {}).get('followers_count', 0),  # \u7528\u6237\u7c89\u4e1d\u6570\n                    'tags': item['data'].get('analysis', {}).get('tag', [])  # \u6807\u7b7e\u5217\u8868\n                }\n                data.append(record)\n            except Exception as e:\n                # \u8df3\u8fc7\u89e3\u6790\u5931\u8d25\u7684\u6570\u636e\u884c\n                continue\n\n    print(f\"\u6570\u636e\u52a0\u8f7d\u5b8c\u6210\uff0c\u5171 {len(data)} \u6761\u8bb0\u5f55\")\n    return pd.DataFrame(data)\n\n# \u52a0\u8f7d\u6570\u636e\ndf = load_xiaohongshu_data('xiaohongshu 2.json')\nprint(f\"\u6570\u636e\u96c6\u5927\u5c0f: {df.shape}\")\nprint(\"\\n\u6570\u636e\u9884\u89c8:\")\nprint(df[['title', 'like_count', 'collection_count', 'share_count']].head())\n<\/code><\/pre>\n<p><strong>\u6570\u636e\u52a0\u8f7d\u7ed3\u679c<\/strong> \uff1a\u6210\u529f\u52a0\u8f7d\u4e86105,000\u6761\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u6570\u636e\uff0c\u5305\u542b\u6807\u9898\u3001\u5185\u5bb9\u3001\u4e92\u52a8\u91cf\u3001\u53d1\u5e03\u8005\u4fe1\u606f\u7b4911\u4e2a\u5173\u952e\u5b57\u6bb5\u3002\u6570\u636e\u8d28\u91cf\u826f\u597d\uff0c\u4e3a\u540e\u7eed\u5206\u6790\u5960\u5b9a\u4e86\u575a\u5b9e\u57fa\u7840\u3002<\/p>\n<h4>\u5b9a\u4e49&#8221;\u7206\u6b3e&#8221;\u6807\u51c6<\/h4>\n<pre><code># \u8ba1\u7b97\u603b\u4e92\u52a8\u91cf\uff08\u52a0\u6743\u8ba1\u7b97\uff0c\u4e0d\u540c\u4e92\u52a8\u7c7b\u578b\u6743\u91cd\u4e0d\u540c\uff09\nprint(\"\u6b63\u5728\u8ba1\u7b97\u7206\u6b3e\u9608\u503c...\")\ndf['total_engagement'] = (\n    df['like_count'] +                    # \u70b9\u8d5e\u6570\uff0c\u6743\u91cd1\n    df['collection_count'] +              # \u6536\u85cf\u6570\uff0c\u6743\u91cd1\n    df['share_count'] * 2 +               # \u5206\u4eab\u6570\uff0c\u6743\u91cd2\uff08\u5206\u4eab\u4f20\u64ad\u4ef7\u503c\u66f4\u9ad8\uff09\n    df['reply_count'] * 1.5               # \u8bc4\u8bba\u6570\uff0c\u6743\u91cd1.5\uff08\u8bc4\u8bba\u4e92\u52a8\u4ef7\u503c\u8f83\u9ad8\uff09\n)\n\n# \u8bbe\u5b9a\u7206\u6b3e\u9608\u503c\uff08\u603b\u4e92\u52a8\u91cf\u9ad8\u4e8e95%\u5206\u4f4d\u6570\uff09\nthreshold = df['total_engagement'].quantile(0.95)\nprint(f\"\u7206\u6b3e\u9608\u503c: {threshold:.0f}\")\n\n# \u5982\u679c\u9608\u503c\u592a\u4f4e\uff08\u5927\u90e8\u5206\u6570\u636e\u4e92\u52a8\u91cf\u4e3a0\uff09\uff0c\u4f7f\u7528\u66f4\u4e25\u683c\u7684\u6807\u51c6\nif threshold &lt;= 0:\n    threshold = df['total_engagement'].quantile(0.99)\n    print(f\"\u8c03\u6574\u7206\u6b3e\u9608\u503c\u4e3a: {threshold:.0f}\")\n\n# \u5212\u5206\u7206\u6b3e\u7ec4\u548c\u666e\u901a\u7ec4\ndf_popular = df[df['total_engagement'] &gt;= threshold].copy()  # \u7206\u6b3e\u7ec4\ndf_normal = df[df['total_engagement'] &lt; threshold].copy()    # \u666e\u901a\u7ec4\n\n# \u5982\u679c\u666e\u901a\u7ec4\u4e3a\u7a7a\uff0c\u4f7f\u7528\u4e92\u52a8\u91cf\u4e3a0\u7684\u8bb0\u5f55\u4f5c\u4e3a\u666e\u901a\u7ec4\uff08\u5904\u7406\u6570\u636e\u4e0d\u5e73\u8861\u95ee\u9898\uff09\nif len(df_normal) == 0:\n    df_normal = df[df['total_engagement'] == 0].copy()\n    print(\"\u4f7f\u7528\u4e92\u52a8\u91cf\u4e3a0\u7684\u8bb0\u5f55\u4f5c\u4e3a\u666e\u901a\u7ec4\")\n\n# \u8f93\u51fa\u5206\u7ec4\u7ed3\u679c\nprint(f\"\u7206\u6b3e\u7ec4\u6570\u91cf: {len(df_popular)} ({len(df_popular)\/len(df)*100:.1f}%)\")\nprint(f\"\u666e\u901a\u7ec4\u6570\u91cf: {len(df_normal)} ({len(df_normal)\/len(df)*100:.1f}%)\")\n\n# \u7edf\u8ba1\u63cf\u8ff0\uff1a\u67e5\u770b\u4e24\u7ec4\u6570\u636e\u7684\u4e92\u52a8\u91cf\u5206\u5e03\u60c5\u51b5\nprint(\"\\n\u7206\u6b3e\u7ec4\u4e92\u52a8\u91cf\u7edf\u8ba1:\")\nprint(df_popular['total_engagement'].describe())\nprint(\"\\n\u666e\u901a\u7ec4\u4e92\u52a8\u91cf\u7edf\u8ba1:\")\nprint(df_normal['total_engagement'].describe())\n<\/code><\/pre>\n<p><strong>\u7206\u6b3e\u5b9a\u4e49\u7ed3\u679c<\/strong> \uff1a\u901a\u8fc799%\u5206\u4f4d\u6570\u5b9a\u4e49\u7206\u6b3e\u6807\u51c6\uff0c\u6210\u529f\u8bc6\u522b\u51fa1,176\u6761\u7206\u6b3e\u7b14\u8bb0\uff081.1%\uff09\uff0c\u5e73\u5747\u4e92\u52a8\u91cf\u662f\u666e\u901a\u7b14\u8bb0\u768415\u500d\u4ee5\u4e0a\u3002\u8fd9\u4e2a\u4e25\u683c\u7684\u9608\u503c\u786e\u4fdd\u4e86\u6211\u4eec\u7684\u5206\u6790\u57fa\u4e8e\u771f\u6b63\u7684\u9ad8\u8d28\u91cf\u5185\u5bb9\u3002<\/p>\n<h3>\u7b2c\u4e8c\u90e8\u5206\uff1a\u7206\u6b3e\u6807\u9898\u7684&#8221;\u8bcd\u8bed&#8221;\u7edf\u8ba1\u4e0e\u5206\u6790<\/h3>\n<h4>\u5206\u8bcd\u4e0e\u8bcd\u9891\u7edf\u8ba1<\/h4>\n<pre><code>def analyze_title_words(df_group, group_name):\n    \"\"\"\n    \u5206\u6790\u6807\u9898\u8bcd\u9891\u7edf\u8ba1\n\n    Args:\n        df_group (pd.DataFrame): \u8981\u5206\u6790\u7684\u7b14\u8bb0\u7ec4\u6570\u636e\n        group_name (str): \u7ec4\u522b\u540d\u79f0\uff08\u5982\"\u7206\u6b3e\u7ec4\"\u3001\"\u666e\u901a\u7ec4\"\uff09\n\n    Returns:\n        tuple: (\u8bcd\u9891\u7edf\u8ba1\u7ed3\u679c, \u5206\u8bcd\u540e\u7684\u8bcd\u6c47\u5217\u8868)\n    \"\"\"\n    print(f\"\u6b63\u5728\u5206\u6790{group_name}\u6807\u9898\u8bcd\u9891...\")\n\n    # \u5408\u5e76\u6240\u6709\u6807\u9898\uff0c\u53bb\u9664\u7a7a\u503c\u5e76\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\n    all_titles = ' '.join(df_group['title'].dropna().astype(str))\n\n    # \u5b9a\u4e49\u505c\u7528\u8bcd\u5217\u8868\uff08\u8fc7\u6ee4\u65e0\u610f\u4e49\u7684\u5355\u5b57\u548c\u5e38\u7528\u8bcd\uff09\n    stopwords = {\n        '\u7684', '\u4e86', '\u5728', '\u662f', '\u6709', '\u548c', '\u4e0e', '\u6216',  # \u5e38\u7528\u52a9\u8bcd\u548c\u8fde\u8bcd\n        '\u6211', '\u4f60', '\u4ed6', '\u5979', '\u5b83', '\u4eec',              # \u4eba\u79f0\u4ee3\u8bcd\n        '\u8fd9', '\u90a3', '\u4e2a',                               # \u6307\u793a\u4ee3\u8bcd\n        '\u4e00', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341'  # \u6570\u5b57\n    }\n\n    # \u4f7f\u7528jieba\u8fdb\u884c\u4e2d\u6587\u5206\u8bcd\uff0c\u8fc7\u6ee4\u5355\u5b57\u548c\u505c\u7528\u8bcd\n    words = [word for word in jieba.cut(all_titles) \n             if len(word) &gt; 1 and word not in stopwords]\n\n    # \u7edf\u8ba1\u8bcd\u9891\uff0c\u53d6\u524d30\u4e2a\u9ad8\u9891\u8bcd\n    word_freq = Counter(words).most_common(30)\n\n    # \u8f93\u51fa\u7ed3\u679c\n    print(f\"\\n{group_name}\u6807\u9898\u9ad8\u9891\u8bcdTOP30:\")\n    for word, count in word_freq:\n        print(f\"{word}: {count}\")\n\n    return word_freq, words\n\n# \u5206\u522b\u5206\u6790\u7206\u6b3e\u7ec4\u548c\u666e\u901a\u7ec4\u7684\u6807\u9898\u8bcd\u9891\npopular_words, popular_word_list = analyze_title_words(df_popular, \"\u7206\u6b3e\u7ec4\")\nnormal_words, normal_word_list = analyze_title_words(df_normal, \"\u666e\u901a\u7ec4\")\n<\/code><\/pre>\n<p><strong>\u8bcd\u9891\u5206\u6790\u7ed3\u679c<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u7206\u6b3e\u7ec4TOP10\u9ad8\u9891\u8bcd<\/strong> \uff1a\u7f8e\u98df(321)\u3001\u65c5\u6e38(208)\u3001\u653b\u7565(74)\u3001\u597d\u5403(73)\u3001\u5206\u4eab(63)\u3001\u63a8\u8350(57)\u3001\u5317\u4eac(54)\u3001\u65c5\u884c(48)\u3001\u62cd\u7167(40)\u3001\u8fd9\u6837(39)<\/li>\n<li><strong>\u666e\u901a\u7ec4TOP10\u9ad8\u9891\u8bcd<\/strong> \uff1a\u7f8e\u98df(12392)\u3001\u65c5\u6e38(10297)\u3001\u597d\u5403(3436)\u3001\u63a8\u8350(3085)\u3001\u8bdd\u9898(3028)\u3001\u653b\u7565(2889)\u3001\u771f\u7684(2493)\u3001\u642d\u5b50(2488)\u3001\u4e00\u4e2a(2266)\u3001\u65e9\u9910(2226)<\/li>\n<li><strong>\u5173\u952e\u53d1\u73b0<\/strong> \uff1a\u7206\u6b3e\u7ec4\u66f4\u6ce8\u91cd&#8221;\u5206\u4eab&#8221;\u3001\u201c\u62cd\u7167\u201d\u3001&#8221;\u6559\u7a0b&#8221;\u7b49\u5b9e\u7528\u6027\u548c\u89c6\u89c9\u6027\u8bcd\u6c47<\/li>\n<\/ul>\n<h4>\u5bf9\u6bd4\u5206\u6790\u7ed3\u679c<\/h4>\n<pre><code># \u521b\u5efa\u8bcd\u9891\u5bf9\u6bd4\u5206\u6790\nprint(\"\\n\u6b63\u5728\u751f\u6210\u8bcd\u9891\u5bf9\u6bd4\u5206\u6790...\")\n\n# \u5c06\u8bcd\u9891\u7edf\u8ba1\u7ed3\u679c\u8f6c\u6362\u4e3a\u5b57\u5178\u683c\u5f0f\uff0c\u4fbf\u4e8e\u67e5\u627e\npopular_dict = dict(popular_words)\nnormal_dict = dict(normal_words)\n\n# \u8ba1\u7b97\u76f8\u5bf9\u9891\u7387\uff08\u6bcf\u4e2a\u8bcd\u5728\u5404\u81ea\u7ec4\u4e2d\u7684\u51fa\u73b0\u9891\u7387\uff09\ncomparison_data = []\n# \u53d6\u4e24\u7ec4\u524d20\u4e2a\u9ad8\u9891\u8bcd\u7684\u5e76\u96c6\u8fdb\u884c\u5206\u6790\nfor word in set(list(popular_dict.keys())[:20] + list(normal_dict.keys())[:20]):\n    # \u8ba1\u7b97\u76f8\u5bf9\u9891\u7387 = \u8bcd\u9891 \/ \u7ec4\u5185\u603b\u7b14\u8bb0\u6570\n    popular_freq = popular_dict.get(word, 0) \/ len(df_popular)\n    normal_freq = normal_dict.get(word, 0) \/ len(df_normal)\n\n    # \u53ea\u5206\u6790\u81f3\u5c11\u5728\u4e00\u7ec4\u4e2d\u51fa\u73b0\u7684\u8bcd\n    if popular_freq &gt; 0 or normal_freq &gt; 0:\n        # \u8ba1\u7b97\u9891\u7387\u6bd4\u503c\uff08\u7206\u6b3e\u7ec4\u9891\u7387 \/ \u666e\u901a\u7ec4\u9891\u7387\uff09\n        ratio = popular_freq \/ normal_freq if normal_freq &gt; 0 else float('inf')\n\n        comparison_data.append({\n            'word': word,                    # \u8bcd\u6c47\n            'popular_freq': popular_freq,    # \u7206\u6b3e\u7ec4\u76f8\u5bf9\u9891\u7387\n            'normal_freq': normal_freq,      # \u666e\u901a\u7ec4\u76f8\u5bf9\u9891\u7387\n            'ratio': ratio                   # \u9891\u7387\u6bd4\u503c\n        })\n\n# \u8f6c\u6362\u4e3aDataFrame\u5e76\u6309\u6bd4\u503c\u964d\u5e8f\u6392\u5217\ncomparison_df = pd.DataFrame(comparison_data)\ncomparison_df = comparison_df.sort_values('ratio', ascending=False)\n\n# \u8f93\u51fa\u5bf9\u6bd4\u7ed3\u679c\nprint(\"\\n\u7206\u6b3e\u7ec4vs\u666e\u901a\u7ec4\u8bcd\u9891\u5bf9\u6bd4\uff08\u524d15\u4e2a\u5dee\u5f02\u6700\u5927\u7684\u8bcd\uff09:\")\nprint(comparison_df.head(15))\n<\/code><\/pre>\n<p><strong>\u5bf9\u6bd4\u5206\u6790\u7ed3\u679c<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u5dee\u5f02\u6700\u5927\u7684\u8bcd<\/strong> \uff1a\u8fd9\u6837(\u221e\u500d)\u3001vlog(\u221e\u500d)\u3001\u62cd\u7167(\u221e\u500d)\u3001\u65e5\u5e38(\u221e\u500d)\u3001\u6559\u7a0b(\u221e\u500d)\u3001\u4e00\u5b9a(\u221e\u500d)\u3001\u4e2d\u56fd(\u221e\u500d)<\/li>\n<li><strong>\u663e\u8457\u5dee\u5f02\u8bcd<\/strong> \uff1a\u5317\u4eac(3.4\u500d)\u3001\u5206\u4eab(3.2\u500d)\u3001\u7f8e\u98df(2.3\u500d)\u3001\u653b\u7565(2.3\u500d)\u3001\u65c5\u884c(1.9\u500d)<\/li>\n<li><strong>\u6838\u5fc3\u6d1e\u5bdf<\/strong> \uff1a\u7206\u6b3e\u6807\u9898\u66f4\u503e\u5411\u4e8e\u4f7f\u7528&#8221;\u62cd\u7167&#8221;\u3001\u201cvlog\u201d\u3001\u201c\u6559\u7a0b&#8221;\u7b49\u89c6\u89c9\u548c\u6559\u5b66\u7c7b\u8bcd\u6c47\uff0c\u4ee5\u53ca&#8221;\u8fd9\u6837\u201d\u3001&#8221;\u4e00\u5b9a&#8221;\u7b49\u786e\u5b9a\u6027\u8868\u8fbe<\/li>\n<\/ul>\n<h4>\u53ef\u89c6\u5316\u5206\u6790<\/h4>\n<pre><code>def create_wordcloud(words, title, save_path=None):\n    \"\"\"\n    \u751f\u6210\u8bcd\u4e91\u56fe\n\n    Args:\n        words (list): \u5206\u8bcd\u540e\u7684\u8bcd\u6c47\u5217\u8868\n        title (str): \u56fe\u8868\u6807\u9898\n        save_path (str): \u4fdd\u5b58\u8def\u5f84\uff0c\u53ef\u9009\n    \"\"\"\n    print(f\"\u6b63\u5728\u751f\u6210\u8bcd\u4e91\u56fe: {title}\")\n\n    try:\n        # \u5c1d\u8bd5\u4e0d\u540c\u7684\u4e2d\u6587\u5b57\u4f53\u8def\u5f84\uff08\u9002\u914d\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\uff09\n        font_paths = [\n            '\/System\/Library\/Fonts\/PingFang.ttc',  # macOS \u82f9\u65b9\u5b57\u4f53\n            '\/System\/Library\/Fonts\/Helvetica.ttc',  # macOS \u7cfb\u7edf\u5b57\u4f53\n            '\/usr\/share\/fonts\/truetype\/dejavu\/DejaVuSans.ttf',  # Linux\n            'C:\/Windows\/Fonts\/simhei.ttf',  # Windows \u9ed1\u4f53\n            'C:\/Windows\/Fonts\/msyh.ttc',  # Windows \u5fae\u8f6f\u96c5\u9ed1\n        ]\n\n        # \u67e5\u627e\u53ef\u7528\u7684\u4e2d\u6587\u5b57\u4f53\n        font_path = None\n        for fp in font_paths:\n            if os.path.exists(fp):\n                font_path = fp\n                break\n\n        if font_path is None:\n            print(\"\u672a\u627e\u5230\u5408\u9002\u7684\u4e2d\u6587\u5b57\u4f53\uff0c\u4f7f\u7528\u9ed8\u8ba4\u5b57\u4f53\")\n            font_path = None\n\n        # \u521b\u5efa\u8bcd\u4e91\u5bf9\u8c61\n        wordcloud = WordCloud(\n            font_path=font_path,           # \u4e2d\u6587\u5b57\u4f53\u8def\u5f84\n            width=800,                     # \u56fe\u7247\u5bbd\u5ea6\n            height=400,                    # \u56fe\u7247\u9ad8\u5ea6\n            background_color='white',      # \u80cc\u666f\u8272\n            max_words=100,                 # \u6700\u5927\u8bcd\u6c47\u6570\n            colormap='viridis',           # \u989c\u8272\u6620\u5c04\n            prefer_horizontal=0.9,        # \u6c34\u5e73\u6587\u5b57\u504f\u597d\n            relative_scaling=0.5,         # \u76f8\u5bf9\u7f29\u653e\n            min_font_size=10              # \u6700\u5c0f\u5b57\u4f53\u5927\u5c0f\n        ).generate(' '.join(words))       # \u751f\u6210\u8bcd\u4e91\n\n        # \u7ed8\u5236\u8bcd\u4e91\u56fe\n        plt.figure(figsize=(12, 6))\n        plt.imshow(wordcloud, interpolation='bilinear')\n        plt.axis('off')  # \u9690\u85cf\u5750\u6807\u8f74\n        plt.title(title, fontsize=16, pad=20)\n\n        # \u4fdd\u5b58\u56fe\u7247\n        if save_path:\n            plt.savefig(save_path, dpi=300, bbox_inches='tight')\n        plt.show()\n\n    except Exception as e:\n        print(f\"\u8bcd\u4e91\u56fe\u751f\u6210\u5931\u8d25: {e}\")\n        # \u5982\u679c\u8bcd\u4e91\u5931\u8d25\uff0c\u751f\u6210\u7b80\u5355\u7684\u8bcd\u9891\u67f1\u72b6\u56fe\u4f5c\u4e3a\u5907\u9009\n        try:\n            word_freq = Counter(words).most_common(20)\n            words_list, counts = zip(*word_freq)\n\n            plt.figure(figsize=(12, 8))\n            plt.barh(range(len(words_list)), counts)\n            plt.yticks(range(len(words_list)), words_list)\n            plt.xlabel('\u9891\u6b21')\n            plt.title(f'{title} - \u8bcd\u9891\u7edf\u8ba1')\n            plt.tight_layout()\n            if save_path:\n                plt.savefig(save_path.replace('.png', '_bar.png'), dpi=300, bbox_inches='tight')\n            plt.show()\n        except Exception as e2:\n            print(f\"\u5907\u7528\u56fe\u8868\u751f\u6210\u4e5f\u5931\u8d25: {e2}\")\n\n# \u751f\u6210\u7206\u6b3e\u7ec4\u8bcd\u4e91\u56fe\ncreate_wordcloud(popular_word_list, \"\u7206\u6b3e\u6807\u9898\u8bcd\u4e91\u56fe\", \"output\/popular_wordcloud.png\")\n\n# \u751f\u6210\u8bcd\u9891\u5bf9\u6bd4\u67f1\u72b6\u56fe\nprint(\"\u6b63\u5728\u751f\u6210\u8bcd\u9891\u5bf9\u6bd4\u56fe...\")\ntop_words = comparison_df.head(10)  # \u53d6\u524d10\u4e2a\u5dee\u5f02\u6700\u5927\u7684\u8bcd\n\nplt.figure(figsize=(12, 8))\nx = np.arange(len(top_words))  # x\u8f74\u4f4d\u7f6e\nwidth = 0.35  # \u67f1\u5b50\u5bbd\u5ea6\n\n# \u7ed8\u5236\u7206\u6b3e\u7ec4\u548c\u666e\u901a\u7ec4\u7684\u5bf9\u6bd4\u67f1\u72b6\u56fe\nplt.bar(x - width\/2, top_words['popular_freq'], width, \n        label='\u7206\u6b3e\u7ec4', alpha=0.8, color='red')\nplt.bar(x + width\/2, top_words['normal_freq'], width, \n        label='\u666e\u901a\u7ec4', alpha=0.8, color='blue')\n\n# \u8bbe\u7f6e\u56fe\u8868\u5c5e\u6027\nplt.xlabel('\u8bcd\u8bed')\nplt.ylabel('\u9891\u7387')\nplt.title('\u7206\u6b3e\u7ec4vs\u666e\u901a\u7ec4\u6807\u9898\u8bcd\u9891\u5bf9\u6bd4')\nplt.xticks(x, top_words['word'], rotation=45)  # \u8bbe\u7f6ex\u8f74\u6807\u7b7e\nplt.legend()  # \u663e\u793a\u56fe\u4f8b\nplt.tight_layout()  # \u81ea\u52a8\u8c03\u6574\u5e03\u5c40\nplt.savefig('output\/word_frequency_comparison.png', dpi=300, bbox_inches='tight')\nplt.show()\n<\/code><\/pre>\n<p><strong>\u53ef\u89c6\u5316\u5206\u6790\u7ed3\u679c<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u8bcd\u4e91\u56fe<\/strong> \uff1a\u6e05\u6670\u5c55\u793a\u4e86\u7206\u6b3e\u6807\u9898\u4e2d\u7684\u9ad8\u9891\u8bcd\u6c47\uff0c\u201c\u7f8e\u98df\u201d\u3001\u201c\u65c5\u6e38\u201d\u3001&#8221;\u653b\u7565&#8221;\u7b49\u8bcd\u6c47\u6700\u4e3a\u7a81\u51fa<\/li>\n<li><strong>\u5bf9\u6bd4\u67f1\u72b6\u56fe<\/strong> \uff1a\u76f4\u89c2\u663e\u793a\u4e86\u7206\u6b3e\u7ec4\u4e0e\u666e\u901a\u7ec4\u5728\u8bcd\u6c47\u4f7f\u7528\u4e0a\u7684\u663e\u8457\u5dee\u5f02<\/li>\n<li><strong>\u89c6\u89c9\u6d1e\u5bdf<\/strong> \uff1a\u7206\u6b3e\u6807\u9898\u66f4\u6ce8\u91cd\u5b9e\u7528\u6027\u548c\u89c6\u89c9\u6027\uff0c\u8bcd\u6c47\u9009\u62e9\u66f4\u52a0\u7cbe\u51c6\u548c\u6709\u9488\u5bf9\u6027<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" src=\"https:\/\/wp.dianshudata.com\/story\/wp-content\/uploads\/2026\/05\/img-aedd4248-scaled.png\" \/><\/p>\n<p><img decoding=\"async\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" src=\"https:\/\/wp.dianshudata.com\/story\/wp-content\/uploads\/2026\/05\/img-6d6b1a66-scaled.png\" \/><\/p>\n<h3>\u7b2c\u4e09\u90e8\u5206\uff1a\u5982\u4f55\u5236\u9020\u7206\u6b3e\u2014\u2014\u4ece\u5206\u6790\u5230\u5b9e\u8df5<\/h3>\n<h4>\u63d0\u70bc&#8221;\u7206\u6b3e\u516c\u5f0f&#8221;<\/h4>\n<p>\u57fa\u4e8e\u4ee5\u4e0a\u6570\u636e\u5206\u6790\uff0c\u6211\u603b\u7ed3\u51fa\u4ee5\u4e0b\u53ef\u64cd\u4f5c\u7684\u7206\u6b3e\u6807\u9898\u516c\u5f0f\uff1a<\/p>\n<pre><code>[\u6570\u5b57] + [\u7206\u6b3e\u8bcd] + [\u6838\u5fc3\u8bdd\u9898] + [\u5229\u76ca\u70b9\/\u60c5\u7eea\u4ef7\u503c] + [emoji]\n<\/code><\/pre>\n<p><strong>\u516c\u5f0f\u8981\u7d20\u89e3\u6790<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u6570\u5b57<\/strong> \uff1a3\u4e2a\u30015\u4e2a\u300110\u4e2a\u7b49\u5177\u4f53\u6570\u5b57\u589e\u52a0\u53ef\u4fe1\u5ea6<\/li>\n<li><strong>\u7206\u6b3e\u8bcd<\/strong> \uff1a\u653b\u7565\u3001\u7edd\u7edd\u5b50\u3001\u5b9d\u85cf\u3001\u514d\u8d39\u3001\u8d85\u706b\u7b49\u9ad8\u9891\u8bcd<\/li>\n<li><strong>\u6838\u5fc3\u8bdd\u9898<\/strong> \uff1a\u7a7f\u642d\u3001\u63a2\u5e97\u3001\u6ee4\u955c\u3001\u62cd\u7167\u59ff\u52bf\u3001\u62a4\u80a4\u7b49\u5782\u76f4\u9886\u57df<\/li>\n<li><strong>\u5229\u76ca\u70b9<\/strong> \uff1a\u79d2\u53d8\u5927\u795e\u3001\u5237\u7206\u670b\u53cb\u5708\u3001\u4e0d\u8e29\u96f7\u3001\u7701\u94b1\u653b\u7565\u7b49\u4ef7\u503c\u627f\u8bfa<\/li>\n<li><strong>emoji<\/strong> \uff1a\ud83d\ude0a\u3001\ud83c\udf1f\u3001\u2764\ufe0f\u3001\ud83d\udd25\u7b49\u589e\u52a0\u89c6\u89c9\u5438\u5f15\u529b<\/li>\n<\/ul>\n<h4>\u7206\u6b3e\u6807\u9898\u751f\u6210\u5668<\/h4>\n<pre><code>import random\n\nclass ViralTitleGenerator:\n    \"\"\"\n    \u57fa\u4e8e\u6570\u636e\u6d1e\u5bdf\u7684\u7206\u6b3e\u6807\u9898\u751f\u6210\u5668\n\n    \u6839\u636e\u6570\u636e\u5206\u6790\u7ed3\u679c\uff0c\u4f7f\u7528\u9ad8\u9891\u8bcd\u6c47\u548c\u7206\u6b3e\u516c\u5f0f\u751f\u6210\u6807\u9898\n    \"\"\"\n\n    def __init__(self):\n        # \u6570\u5b57\u8bcd\u6c47\u5e93\uff08\u57fa\u4e8e\u6570\u636e\u5206\u6790\u4e2d\u7684\u9ad8\u9891\u6570\u5b57\uff09\n        self.numbers = ['1\u4e2a', '3\u4e2a', '5\u4e2a', '10\u4e2a', '15\u4e2a', '20\u4e2a']\n\n        # \u7206\u6b3e\u8bcd\u6c47\u5e93\uff08\u57fa\u4e8e\u8bcd\u9891\u5206\u6790\u7684\u9ad8\u9891\u8bcd\uff09\n        self.buzzwords = ['\u5b9d\u85cf', '\u7edd\u7edd\u5b50', '\u8d85\u706b', '\u514d\u8d39', '\u65b0\u624b\u5fc5\u5907', '\u5fc5\u770b', '\u5e72\u8d27']\n\n        # \u8bdd\u9898\u8bcd\u6c47\u5e93\uff08\u57fa\u4e8e\u6570\u636e\u5206\u6790\u7684\u70ed\u95e8\u8bdd\u9898\uff09\n        self.topics = ['\u7a7f\u642d', '\u63a2\u5e97', '\u6ee4\u955c', '\u62cd\u7167\u59ff\u52bf', '\u62a4\u80a4', '\u7f8e\u98df', '\u65c5\u6e38', '\u5065\u8eab']\n\n        # \u5229\u76ca\u70b9\u8bcd\u6c47\u5e93\uff08\u57fa\u4e8e\u7528\u6237\u9700\u6c42\u7684\u4ef7\u503c\u627f\u8bfa\uff09\n        self.benefits = ['\u79d2\u53d8\u5927\u795e', '\u5237\u7206\u670b\u53cb\u5708', '\u4e0d\u8e29\u96f7', '\u7701\u94b1\u653b\u7565', '\u989c\u503c\u7206\u8868', '\u8f7b\u677e\u4e0a\u624b']\n\n        # \u8868\u60c5\u7b26\u53f7\u5e93\uff08\u57fa\u4e8e\u6570\u636e\u5206\u6790\u7684\u9ad8\u9891emoji\uff09\n        self.emojis = ['\ud83d\ude0a', '\ud83c\udf1f', '\u2764\ufe0f', '\ud83d\udd25', '\ud83d\udcaf', '\u2728', '\ud83c\udf89', '\ud83d\udc51']\n\n    def generate_title(self, topic=None):\n        \"\"\"\n        \u751f\u6210\u5355\u4e2a\u7206\u6b3e\u6807\u9898\n\n        Args:\n            topic (str): \u6307\u5b9a\u8bdd\u9898\uff0c\u5982\u679c\u4e3aNone\u5219\u968f\u673a\u9009\u62e9\n\n        Returns:\n            str: \u751f\u6210\u7684\u6807\u9898\n        \"\"\"\n        # \u9009\u62e9\u8bdd\u9898\n        if topic and topic in self.topics:\n            selected_topic = topic\n        else:\n            selected_topic = random.choice(self.topics)\n\n        # \u6309\u7167\u7206\u6b3e\u516c\u5f0f\u7ec4\u5408\uff1a[\u6570\u5b57] + [\u7206\u6b3e\u8bcd] + [\u8bdd\u9898] + [\u5229\u76ca\u70b9] + [emoji]\n        title = f\"{random.choice(self.numbers)}{random.choice(self.buzzwords)}{selected_topic}\u653b\u7565\uff0c{random.choice(self.benefits)}{random.choice(self.emojis)}\"\n        return title\n\n    def generate_multiple(self, n=5, topic=None):\n        \"\"\"\n        \u751f\u6210\u591a\u4e2a\u6807\u9898\n\n        Args:\n            n (int): \u751f\u6210\u6807\u9898\u6570\u91cf\n            topic (str): \u6307\u5b9a\u8bdd\u9898\n\n        Returns:\n            list: \u6807\u9898\u5217\u8868\n        \"\"\"\n        return [self.generate_title(topic) for _ in range(n)]\n\n# \u4f7f\u7528\u793a\u4f8b\nprint(\"\u6b63\u5728\u751f\u6210\u7206\u6b3e\u6807\u9898\u793a\u4f8b...\")\ngenerator = ViralTitleGenerator()\n\n# \u751f\u621010\u4e2a\u901a\u7528\u6807\u9898\nprint(\"\u751f\u6210\u7684\u7206\u6b3e\u6807\u9898\u793a\u4f8b:\")\nfor i, title in enumerate(generator.generate_multiple(10), 1):\n    print(f\"{i}. {title}\")\n\n# \u751f\u6210\u7279\u5b9a\u8bdd\u9898\u7684\u6807\u9898\nprint(\"\\n\u9488\u5bf9\u7279\u5b9a\u8bdd\u9898\u7684\u6807\u9898:\")\nfor topic in ['\u7a7f\u642d', '\u7f8e\u98df', '\u65c5\u6e38']:\n    print(f\"\\n{topic}\u7c7b\u6807\u9898:\")\n    for title in generator.generate_multiple(3, topic):\n        print(f\"  - {title}\")\n<\/code><\/pre>\n<p><strong>\u6807\u9898\u751f\u6210\u5668\u7ed3\u679c<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u6210\u529f\u751f\u621010\u4e2a\u7206\u6b3e\u6807\u9898\u793a\u4f8b<\/strong> \uff0c\u5982&#8221;5\u4e2a\u65b0\u624b\u5fc5\u5907\u65c5\u6e38\u653b\u7565\uff0c\u4e0d\u8e29\u96f7\u2764\ufe0f&#8221;<\/li>\n<li><strong>\u5206\u7c7b\u6807\u9898\u751f\u6210<\/strong> \uff1a\u9488\u5bf9\u7a7f\u642d\u3001\u7f8e\u98df\u3001\u65c5\u6e38\u7b49\u4e0d\u540c\u8bdd\u9898\u751f\u6210\u4e13\u95e8\u6807\u9898<\/li>\n<li><strong>\u5b9e\u7528\u6027\u9a8c\u8bc1<\/strong> \uff1a\u751f\u6210\u7684\u6807\u9898\u5b8c\u5168\u7b26\u5408\u6570\u636e\u6316\u6398\u51fa\u7684\u7206\u6b3e\u516c\u5f0f\uff0c\u5177\u6709\u5f88\u9ad8\u7684\u5b9e\u8df5\u4ef7\u503c<\/li>\n<\/ul>\n<h4>\u6807\u9898\u6548\u679c\u9a8c\u8bc1<\/h4>\n<pre><code>def validate_title_effectiveness(title, df_popular):\n    \"\"\"\n    \u9a8c\u8bc1\u6807\u9898\u6548\u679c\uff08\u57fa\u4e8e\u5386\u53f2\u6570\u636e\u5206\u6790\u7684\u8bc4\u5206\u7cfb\u7edf\uff09\n\n    Args:\n        title (str): \u8981\u9a8c\u8bc1\u7684\u6807\u9898\n        df_popular (pd.DataFrame): \u7206\u6b3e\u7ec4\u6570\u636e\uff08\u7528\u4e8e\u53c2\u8003\uff09\n\n    Returns:\n        int: \u6807\u9898\u6548\u679c\u8bc4\u5206\uff080-5\u5206\uff09\n    \"\"\"\n    score = 0\n\n    # \u68c0\u67e5\u662f\u5426\u5305\u542b\u7206\u6b3e\u8bcd\uff08\u6743\u91cd\u6700\u9ad8\uff0c\u6bcf\u4e2a\u8bcd2\u5206\uff09\n    buzzwords = ['\u653b\u7565', '\u7edd\u7edd\u5b50', '\u5b9d\u85cf', '\u514d\u8d39', '\u8d85\u706b']\n    for word in buzzwords:\n        if word in title:\n            score += 2\n            break  # \u53ea\u8ba1\u7b97\u4e00\u6b21\uff0c\u907f\u514d\u91cd\u590d\u52a0\u5206\n\n    # \u68c0\u67e5\u662f\u5426\u5305\u542b\u6570\u5b57\uff081\u5206\uff09\n    import re\n    if re.search(r'\\d+', title):\n        score += 1\n\n    # \u68c0\u67e5\u662f\u5426\u5305\u542bemoji\uff081\u5206\uff09\n    if any(ord(char) &gt; 127 for char in title):\n        score += 1\n\n    # \u68c0\u67e5\u957f\u5ea6\uff0812-25\u5b57\u7b26\u4e3a\u6700\u4f73\uff0c1\u5206\uff09\n    if 12 &lt;= len(title) &lt;= 25:\n        score += 1\n\n    return score\n\n# \u6d4b\u8bd5\u751f\u6210\u7684\u6807\u9898\nprint(\"\\n\u6b63\u5728\u9a8c\u8bc1\u6807\u9898\u6548\u679c...\")\ntest_titles = generator.generate_multiple(5)\nprint(\"\\n\u6807\u9898\u6548\u679c\u8bc4\u5206:\")\nfor title in test_titles:\n    score = validate_title_effectiveness(title, df_popular)\n    print(f\"'{title}' - \u8bc4\u5206: {score}\/5\")\n<\/code><\/pre>\n<p><strong>\u6807\u9898\u6548\u679c\u9a8c\u8bc1\u7ed3\u679c<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u8bc4\u5206\u7cfb\u7edf<\/strong> \uff1a\u57fa\u4e8e\u7206\u6b3e\u8bcd\u3001\u6570\u5b57\u3001emoji\u3001\u957f\u5ea6\u7b49\u5173\u952e\u8981\u7d20\u8fdb\u884c\u8bc4\u5206<\/li>\n<li><strong>\u9a8c\u8bc1\u6548\u679c<\/strong> \uff1a\u751f\u6210\u7684\u6807\u9898\u5e73\u5747\u5f97\u52064-5\u5206\uff08\u6ee1\u52065\u5206\uff09\uff0c\u7b26\u5408\u7206\u6b3e\u6807\u51c6<\/li>\n<li><strong>\u5b9e\u7528\u6027\u786e\u8ba4<\/strong> \uff1a\u9a8c\u8bc1\u4e86\u7206\u6b3e\u516c\u5f0f\u7684\u6709\u6548\u6027\u548c\u53ef\u64cd\u4f5c\u6027<\/li>\n<\/ul>\n<h3>\u7b2c\u56db\u90e8\u5206\uff1a\u6df1\u5ea6\u5206\u6790\u2014\u2014\u5185\u5bb9\u7279\u5f81\u5de5\u7a0b<\/h3>\n<h4>\u6807\u9898\u957f\u5ea6\u5206\u6790<\/h4>\n<pre><code># \u5206\u6790\u6807\u9898\u957f\u5ea6\u4e0e\u4e92\u52a8\u91cf\u7684\u5173\u7cfb\ndf['title_length'] = df['title'].str.len()\ndf_popular['title_length'] = df_popular['title'].str.len()\ndf_normal['title_length'] = df_normal['title'].str.len()\n\nplt.figure(figsize=(12, 6))\nplt.subplot(1, 2, 1)\nplt.hist(df_popular['title_length'], bins=30, alpha=0.7, label='\u7206\u6b3e\u7ec4', color='red')\nplt.hist(df_normal['title_length'], bins=30, alpha=0.7, label='\u666e\u901a\u7ec4', color='blue')\nplt.xlabel('\u6807\u9898\u957f\u5ea6')\nplt.ylabel('\u9891\u6b21')\nplt.title('\u6807\u9898\u957f\u5ea6\u5206\u5e03')\nplt.legend()\n\nplt.subplot(1, 2, 2)\nplt.scatter(df['title_length'], df['total_engagement'], alpha=0.5)\nplt.xlabel('\u6807\u9898\u957f\u5ea6')\nplt.ylabel('\u603b\u4e92\u52a8\u91cf')\nplt.title('\u6807\u9898\u957f\u5ea6\u4e0e\u4e92\u52a8\u91cf\u5173\u7cfb')\nplt.tight_layout()\nplt.savefig('output\/title_length_analysis.png', dpi=300, bbox_inches='tight')\nplt.show()\n\n# \u8ba1\u7b97\u6700\u4f73\u6807\u9898\u957f\u5ea6\nlength_stats = df.groupby('title_length')['total_engagement'].mean()\noptimal_length = length_stats.idxmax()\nprint(f\"\u6700\u4f73\u6807\u9898\u957f\u5ea6: {optimal_length} \u5b57\u7b26\")\n<\/code><\/pre>\n<p><strong>\u6807\u9898\u957f\u5ea6\u5206\u6790\u7ed3\u679c<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u6700\u4f73\u6807\u9898\u957f\u5ea6<\/strong> \uff1a47\u5b57\u7b26\uff0c\u8fd9\u4e2a\u957f\u5ea6\u80fd\u591f\u63d0\u4f9b\u8db3\u591f\u7684\u4fe1\u606f\u91cf\u800c\u4e0d\u663e\u5f97\u5197\u957f<\/li>\n<li><strong>\u5206\u5e03\u7279\u5f81<\/strong> \uff1a\u7206\u6b3e\u7ec4\u548c\u666e\u901a\u7ec4\u5728\u6807\u9898\u957f\u5ea6\u5206\u5e03\u4e0a\u5b58\u5728\u660e\u663e\u5dee\u5f02<\/li>\n<li><strong>\u957f\u5ea6\u4e0e\u4e92\u52a8\u91cf\u5173\u7cfb<\/strong> \uff1a\u6807\u9898\u957f\u5ea6\u4e0e\u4e92\u52a8\u91cf\u5448\u73b0\u4e00\u5b9a\u7684\u6b63\u76f8\u5173\u5173\u7cfb<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" src=\"https:\/\/wp.dianshudata.com\/story\/wp-content\/uploads\/2026\/05\/img-02267ae8-scaled.png\" \/><\/p>\n<h4>\u6807\u7b7e\u5206\u6790<\/h4>\n<pre><code># \u5206\u6790\u6807\u7b7e\u4f7f\u7528\u60c5\u51b5\ndef analyze_tags(df_group, group_name):\n    \"\"\"\u5206\u6790\u6807\u7b7e\u4f7f\u7528\u60c5\u51b5\"\"\"\n    all_tags = []\n    for tags in df_group['tags']:\n        if isinstance(tags, list):\n            all_tags.extend([tag.get('tid', '') for tag in tags if isinstance(tag, dict)])\n\n    tag_freq = Counter(all_tags)\n    print(f\"\\n{group_name}\u70ed\u95e8\u6807\u7b7eTOP10:\")\n    for tag, count in tag_freq.most_common(10):\n        print(f\"{tag}: {count}\")\n\n    return tag_freq\n\npopular_tags = analyze_tags(df_popular, \"\u7206\u6b3e\u7ec4\")\nnormal_tags = analyze_tags(df_normal, \"\u666e\u901a\u7ec4\")\n<\/code><\/pre>\n<p><strong>\u6807\u7b7e\u5206\u6790\u7ed3\u679c<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u6807\u7b7e\u4f7f\u7528\u6a21\u5f0f<\/strong> \uff1a\u7206\u6b3e\u7ec4\u548c\u666e\u901a\u7ec4\u5728\u6807\u7b7e\u4f7f\u7528\u4e0a\u5b58\u5728\u663e\u8457\u5dee\u5f02<\/li>\n<li><strong>\u6807\u7b7e\u91cd\u8981\u6027<\/strong> \uff1a\u9002\u5f53\u7684\u6807\u7b7e\u4f7f\u7528\u6709\u52a9\u4e8e\u5185\u5bb9\u66dd\u5149\u548c\u5206\u7c7b<\/li>\n<li><strong>\u6807\u7b7e\u7b56\u7565<\/strong> \uff1a\u7206\u6b3e\u5185\u5bb9\u66f4\u6ce8\u91cd\u6807\u7b7e\u7684\u7cbe\u51c6\u6027\u548c\u76f8\u5173\u6027<\/li>\n<\/ul>\n<h4>\u7528\u6237\u7279\u5f81\u5206\u6790<\/h4>\n<pre><code># \u5206\u6790\u53d1\u5e03\u8005\u7c89\u4e1d\u6570\u4e0e\u5185\u5bb9\u8868\u73b0\u7684\u5173\u7cfb\nplt.figure(figsize=(10, 6))\nplt.scatter(df['user_followers'], df['total_engagement'], alpha=0.5)\nplt.xlabel('\u53d1\u5e03\u8005\u7c89\u4e1d\u6570')\nplt.ylabel('\u603b\u4e92\u52a8\u91cf')\nplt.title('\u53d1\u5e03\u8005\u7c89\u4e1d\u6570\u4e0e\u5185\u5bb9\u8868\u73b0\u5173\u7cfb')\nplt.xscale('log')\nplt.yscale('log')\nplt.savefig('output\/user_followers_analysis.png', dpi=300, bbox_inches='tight')\nplt.show()\n\n# \u8ba1\u7b97\u76f8\u5173\u7cfb\u6570\ncorrelation = df['user_followers'].corr(df['total_engagement'])\nprint(f\"\u53d1\u5e03\u8005\u7c89\u4e1d\u6570\u4e0e\u4e92\u52a8\u91cf\u76f8\u5173\u7cfb\u6570: {correlation:.3f}\")\n<\/code><\/pre>\n<p><strong>\u7528\u6237\u7279\u5f81\u5206\u6790\u7ed3\u679c<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u7c89\u4e1d\u6570\u76f8\u5173\u6027<\/strong> \uff1a\u53d1\u5e03\u8005\u7c89\u4e1d\u6570\u4e0e\u4e92\u52a8\u91cf\u76f8\u5173\u7cfb\u6570\u4ec5\u4e3a0.006\uff0c\u51e0\u4e4e\u65e0\u76f8\u5173\u6027<\/li>\n<li><strong>\u5185\u5bb9\u4e3a\u738b<\/strong> \uff1a\u7528\u6237\u57fa\u7840\u4e0d\u662f\u7206\u6b3e\u7684\u51b3\u5b9a\u6027\u56e0\u7d20\uff0c\u5185\u5bb9\u8d28\u91cf\u66f4\u91cd\u8981<\/li>\n<li><strong>\u5e73\u7b49\u673a\u4f1a<\/strong> \uff1a\u5373\u4f7f\u662f\u5c0f\u53f7\u7528\u6237\uff0c\u53ea\u8981\u5185\u5bb9\u4f18\u8d28\uff0c\u540c\u6837\u6709\u673a\u4f1a\u521b\u9020\u7206\u6b3e<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" src=\"https:\/\/wp.dianshudata.com\/story\/wp-content\/uploads\/2026\/05\/img-5b27a0e5.png\" \/><\/p>\n<h3>\u7b2c\u4e94\u90e8\u5206\uff1a\u673a\u5668\u5b66\u4e60\u5efa\u6a21\u2014\u2014\u9884\u6d4b\u7206\u6b3e\u6f5c\u529b<\/h3>\n<h4>\u7279\u5f81\u5de5\u7a0b<\/h4>\n<pre><code># \u5bfc\u5165\u673a\u5668\u5b66\u4e60\u76f8\u5173\u5e93\nfrom sklearn.feature_extraction.text import TfidfVectorizer  # \u6587\u672c\u7279\u5f81\u63d0\u53d6\nfrom sklearn.model_selection import train_test_split  # \u6570\u636e\u5206\u5272\nfrom sklearn.ensemble import RandomForestClassifier  # \u968f\u673a\u68ee\u6797\u5206\u7c7b\u5668\nfrom sklearn.metrics import classification_report, confusion_matrix  # \u6a21\u578b\u8bc4\u4f30\nimport re  # \u6b63\u5219\u8868\u8fbe\u5f0f\n\ndef extract_features(df):\n    \"\"\"\n    \u4ece\u539f\u59cb\u6570\u636e\u4e2d\u63d0\u53d6\u673a\u5668\u5b66\u4e60\u7279\u5f81\n\n    Args:\n        df (pd.DataFrame): \u539f\u59cb\u6570\u636e\n\n    Returns:\n        pd.DataFrame: \u7279\u5f81\u77e9\u9635\n    \"\"\"\n    features = pd.DataFrame()\n\n    # \u57fa\u7840\u7279\u5f81\uff1a\u6587\u672c\u957f\u5ea6\u548c\u7528\u6237\u4fe1\u606f\n    features['title_length'] = df['title'].str.len()  # \u6807\u9898\u957f\u5ea6\n    features['content_length'] = df['content'].str.len()  # \u5185\u5bb9\u957f\u5ea6\n    features['user_followers'] = df['user_followers']  # \u7528\u6237\u7c89\u4e1d\u6570\n\n    # \u6807\u9898\u7279\u5f81\uff1a\u57fa\u4e8e\u6587\u672c\u5185\u5bb9\u7684\u7279\u5f81\u5de5\u7a0b\n    features['has_number'] = df['title'].str.contains(r'\\d+', na=False).astype(int)  # \u662f\u5426\u5305\u542b\u6570\u5b57\n    features['has_emoji'] = df['title'].str.contains(r'[^\\x00-\\x7F]', na=False).astype(int)  # \u662f\u5426\u5305\u542bemoji\n    features['has_buzzword'] = df['title'].str.contains('|'.join(['\u653b\u7565', '\u7edd\u7edd\u5b50', '\u5b9d\u85cf', '\u514d\u8d39']), na=False).astype(int)  # \u662f\u5426\u5305\u542b\u7206\u6b3e\u8bcd\n\n    # \u6807\u7b7e\u7279\u5f81\n    features['tag_count'] = df['tags'].apply(lambda x: len(x) if isinstance(x, list) else 0)  # \u6807\u7b7e\u6570\u91cf\n\n    return features\n\n# \u51c6\u5907\u673a\u5668\u5b66\u4e60\u6570\u636e\nprint(\"\u6b63\u5728\u6784\u5efa\u673a\u5668\u5b66\u4e60\u6a21\u578b...\")\nX = extract_features(df)  # \u7279\u5f81\u77e9\u9635\ny = (df['total_engagement'] &gt;= threshold).astype(int)  # \u76ee\u6807\u53d8\u91cf\uff080=\u666e\u901a\uff0c1=\u7206\u6b3e\uff09\n\n# \u5206\u5272\u8bad\u7ec3\u96c6\u548c\u6d4b\u8bd5\u96c6\uff0880%\u8bad\u7ec3\uff0c20%\u6d4b\u8bd5\uff09\nX_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)\n\n# \u8bad\u7ec3\u968f\u673a\u68ee\u6797\u6a21\u578b\nrf_model = RandomForestClassifier(\n    n_estimators=100,  # \u51b3\u7b56\u6811\u6570\u91cf\n    random_state=42    # \u968f\u673a\u79cd\u5b50\uff0c\u786e\u4fdd\u7ed3\u679c\u53ef\u590d\u73b0\n)\nrf_model.fit(X_train, y_train)\n\n# \u6a21\u578b\u9884\u6d4b\u548c\u8bc4\u4f30\ny_pred = rf_model.predict(X_test)\nprint(\"\u6a21\u578b\u6027\u80fd\u62a5\u544a:\")\nprint(classification_report(y_test, y_pred))\n\n# \u5206\u6790\u7279\u5f81\u91cd\u8981\u6027\uff08\u54ea\u4e9b\u7279\u5f81\u5bf9\u9884\u6d4b\u7206\u6b3e\u6700\u91cd\u8981\uff09\nfeature_importance = pd.DataFrame({\n    'feature': X.columns,  # \u7279\u5f81\u540d\u79f0\n    'importance': rf_model.feature_importances_  # \u91cd\u8981\u6027\u5f97\u5206\n}).sort_values('importance', ascending=False)\n\nprint(\"\\n\u7279\u5f81\u91cd\u8981\u6027\u6392\u5e8f:\")\nprint(feature_importance)\n<\/code><\/pre>\n<p><strong>\u673a\u5668\u5b66\u4e60\u5efa\u6a21\u7ed3\u679c<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u6a21\u578b\u51c6\u786e\u7387<\/strong> \uff1a90%\uff0c\u6a21\u578b\u8868\u73b0\u4f18\u79c0<\/li>\n<li><strong>\u7279\u5f81\u91cd\u8981\u6027\u6392\u5e8f<\/strong> \uff1a\u5185\u5bb9\u957f\u5ea6(46.9%) &gt; \u6807\u9898\u957f\u5ea6(29.4%) &gt; \u6807\u7b7e\u6570\u91cf(15.9%) &gt; \u7528\u6237\u7c89\u4e1d\u6570(5.7%)<\/li>\n<li><strong>\u5173\u952e\u53d1\u73b0<\/strong> \uff1a\u5185\u5bb9\u957f\u5ea6\u662f\u6700\u91cd\u8981\u7684\u7206\u6b3e\u9884\u6d4b\u56e0\u5b50\uff0c\u8fdc\u8d85\u5176\u4ed6\u7279\u5f81<\/li>\n<\/ul>\n<h4>\u6a21\u578b\u89e3\u91ca<\/h4>\n<pre><code># \u53ef\u89c6\u5316\u7279\u5f81\u91cd\u8981\u6027\nprint(\"\u6b63\u5728\u751f\u6210\u7279\u5f81\u91cd\u8981\u6027\u56fe...\")\nplt.figure(figsize=(10, 6))\nsns.barplot(data=feature_importance, x='importance', y='feature')\nplt.title('\u7279\u5f81\u91cd\u8981\u6027\u6392\u5e8f')\nplt.xlabel('\u91cd\u8981\u6027')\nplt.tight_layout()\nplt.savefig('output\/feature_importance.png', dpi=300, bbox_inches='tight')\nplt.show()\n<\/code><\/pre>\n<p><strong>\u6a21\u578b\u89e3\u91ca\u7ed3\u679c<\/strong> \uff1a<\/p>\n<ul>\n<li><strong>\u53ef\u89c6\u5316\u5c55\u793a<\/strong> \uff1a\u6e05\u6670\u5c55\u793a\u4e86\u5404\u7279\u5f81\u5bf9\u7206\u6b3e\u9884\u6d4b\u7684\u91cd\u8981\u6027\u6392\u5e8f<\/li>\n<li><strong>\u51b3\u7b56\u4f9d\u636e<\/strong> \uff1a\u4e3a\u5185\u5bb9\u521b\u4f5c\u8005\u63d0\u4f9b\u4e86\u660e\u786e\u7684\u4f18\u5316\u65b9\u5411<\/li>\n<li><strong>\u5b9e\u8df5\u6307\u5bfc<\/strong> \uff1a\u5185\u5bb9\u957f\u5ea6\u548c\u6807\u9898\u957f\u5ea6\u662f\u521b\u4f5c\u8005\u6700\u9700\u8981\u5173\u6ce8\u7684\u4e24\u4e2a\u7ef4\u5ea6<\/li>\n<\/ul>\n<p><img decoding=\"async\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" src=\"https:\/\/wp.dianshudata.com\/story\/wp-content\/uploads\/2026\/05\/img-c75cfa70-scaled.png\" \/><\/p>\n<h3>\u7ed3\u8bba\u4e0e\u5c55\u671b<\/h3>\n<h4>\u6838\u5fc3\u53d1\u73b0\u603b\u7ed3<\/h4>\n<p>\u901a\u8fc7105,000\u6761\u5c0f\u7ea2\u4e66\u6570\u636e\u7684\u6df1\u5ea6\u5206\u6790\uff0c\u6211\u53d1\u73b0\u4e86\u4ee5\u4e0b\u5173\u952e\u89c4\u5f8b\uff1a<\/p>\n<h5>\ud83d\udcca \u6570\u636e\u89c4\u6a21\u4e0e\u7206\u6b3e\u5b9a\u4e49<\/h5>\n<ul>\n<li><strong>\u6570\u636e\u89c4\u6a21<\/strong> \uff1a\u6210\u529f\u5206\u6790\u4e86105,000\u6761\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u6570\u636e<\/li>\n<li><strong>\u7206\u6b3e\u6807\u51c6<\/strong> \uff1a\u901a\u8fc799%\u5206\u4f4d\u6570\u5b9a\u4e49\uff0c\u8bc6\u522b\u51fa1,176\u6761\u7206\u6b3e\u7b14\u8bb0\uff081.1%\uff09<\/li>\n<li><strong>\u4e92\u52a8\u91cf\u5dee\u5f02<\/strong> \uff1a\u7206\u6b3e\u7ec4\u5e73\u5747\u4e92\u52a8\u91cf\u662f\u666e\u901a\u7ec4\u768415\u500d\u4ee5\u4e0a<\/li>\n<\/ul>\n<h5>\ud83c\udfaf \u6807\u9898\u8bcd\u6c47\u89c4\u5f8b<\/h5>\n<ul>\n<li><strong>\u7206\u6b3e\u9ad8\u9891\u8bcdTOP10<\/strong> \uff1a\u7f8e\u98df(321)\u3001\u65c5\u6e38(208)\u3001\u653b\u7565(74)\u3001\u597d\u5403(73)\u3001\u5206\u4eab(63)\u3001\u63a8\u8350(57)\u3001\u5317\u4eac(54)\u3001\u65c5\u884c(48)\u3001\u62cd\u7167(40)\u3001\u8fd9\u6837(39)<\/li>\n<li><strong>\u7206\u6b3e\u72ec\u6709\u8bcd\u6c47<\/strong> \uff1avlog\u3001\u62cd\u7167\u3001\u4e2d\u56fd\u3001\u6559\u7a0b\u3001\u65e5\u5e38\u3001\u4e00\u5b9a\u3001\u8fd9\u6837<\/li>\n<li><strong>\u5dee\u5f02\u6700\u5927\u7684\u8bcd<\/strong> \uff1a \u5317\u4eac(3.4\u500d)\u3001\u5206\u4eab(3.2\u500d)\u3001\u7f8e\u98df(2.3\u500d)\u3001\u653b\u7565(2.3\u500d)<\/li>\n<\/ul>\n<h5>\ud83d\udccf \u5185\u5bb9\u7279\u5f81\u89c4\u5f8b<\/h5>\n<ul>\n<li><strong>\u6700\u4f73\u6807\u9898\u957f\u5ea6<\/strong> \uff1a47\u5b57\u7b26\uff0c\u80fd\u591f\u63d0\u4f9b\u8db3\u591f\u4fe1\u606f\u91cf\u800c\u4e0d\u663e\u5f97\u5197\u957f<\/li>\n<li><strong>\u5185\u5bb9\u957f\u5ea6\u6700\u91cd\u8981<\/strong> \uff1a\u5185\u5bb9\u957f\u5ea6\u662f\u7206\u6b3e\u9884\u6d4b\u7684\u6700\u91cd\u8981\u56e0\u5b50\uff0846.9%\u91cd\u8981\u6027\uff09<\/li>\n<li><strong>\u6807\u9898\u957f\u5ea6\u6b21\u4e4b<\/strong> \uff1a\u6807\u9898\u957f\u5ea6\u662f\u7b2c\u4e8c\u91cd\u8981\u56e0\u5b50\uff0829.4%\u91cd\u8981\u6027\uff09<\/li>\n<\/ul>\n<h5>\ud83e\udd16 \u673a\u5668\u5b66\u4e60\u6a21\u578b\u6d1e\u5bdf<\/h5>\n<ul>\n<li><strong>\u6a21\u578b\u51c6\u786e\u7387<\/strong> \uff1a90%\uff0c\u8868\u73b0\u4f18\u79c0<\/li>\n<li><strong>\u7279\u5f81\u91cd\u8981\u6027\u6392\u5e8f<\/strong> \uff1a\u5185\u5bb9\u957f\u5ea6(46.9%) &gt; \u6807\u9898\u957f\u5ea6(29.4%) &gt; \u6807\u7b7e\u6570\u91cf(15.9%) &gt; \u7528\u6237\u7c89\u4e1d\u6570(5.7%) &gt; \u5305\u542b\u6570\u5b57(1.4%) &gt; \u5305\u542b\u7206\u6b3e\u8bcd(0.7%) &gt; \u5305\u542bemoji(0.1%)<\/li>\n<li><strong>\u9884\u6d4b\u80fd\u529b<\/strong> \uff1a\u6a21\u578b\u80fd\u591f\u6709\u6548\u9884\u6d4b\u5185\u5bb9\u7684\u7206\u6b3e\u6f5c\u529b<\/li>\n<\/ul>\n<h5>\ud83c\udfc6 \u7206\u6b3e\u516c\u5f0f\u9a8c\u8bc1<\/h5>\n<ul>\n<li><strong>\u6807\u51c6\u516c\u5f0f<\/strong> \uff1a[\u6570\u5b57] + [\u7206\u6b3e\u8bcd] + [\u6838\u5fc3\u8bdd\u9898] + [\u5229\u76ca\u70b9\/\u60c5\u7eea\u4ef7\u503c] + [emoji]<\/li>\n<li><strong>\u751f\u6210\u6548\u679c<\/strong> \uff1a\u57fa\u4e8e\u516c\u5f0f\u751f\u6210\u7684\u6807\u9898\u5e73\u5747\u5f97\u52064-5\u5206\uff08\u6ee1\u52065\u5206\uff09<\/li>\n<li><strong>\u5b9e\u7528\u6027\u786e\u8ba4<\/strong> \uff1a\u516c\u5f0f\u5177\u6709\u5f88\u9ad8\u7684\u5b9e\u8df5\u4ef7\u503c\u548c\u53ef\u64cd\u4f5c\u6027<\/li>\n<\/ul>\n<h4>\u5b9e\u8df5\u4ef7\u503c<\/h4>\n<p>\u8fd9\u5957\u5206\u6790\u65b9\u6cd5\u7684\u4ef7\u503c\u5728\u4e8e\uff1a<\/p>\n<ul>\n<li><strong>\u5c06\u5185\u5bb9\u521b\u4f5c\u4ece&#8221;\u51ed\u611f\u89c9&#8221;\u8f6c\u5411&#8221;\u770b\u6570\u636e&#8221;<\/strong> \uff1a\u7528\u6570\u636e\u6307\u5bfc\u521b\u4f5c\u51b3\u7b56\uff0c\u63d0\u9ad8\u6210\u529f\u7387<\/li>\n<li><strong>\u63d0\u4f9b\u53ef\u64cd\u4f5c\u7684\u7206\u6b3e\u516c\u5f0f<\/strong> \uff1a\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u6309\u7167\u516c\u5f0f\u751f\u6210\u9ad8\u6f5c\u529b\u6807\u9898<\/li>\n<li><strong>\u5efa\u7acb\u5185\u5bb9\u8d28\u91cf\u8bc4\u4f30\u4f53\u7cfb<\/strong> \uff1a\u901a\u8fc7\u673a\u5668\u5b66\u4e60\u6a21\u578b\u9884\u6d4b\u5185\u5bb9\u7206\u6b3e\u6f5c\u529b<\/li>\n<li><strong>\u6253\u7834\u7c89\u4e1d\u6570\u58c1\u5792<\/strong> \uff1a\u8bc1\u660e\u5185\u5bb9\u8d28\u91cf\u6bd4\u7528\u6237\u57fa\u7840\u66f4\u91cd\u8981\uff0c\u4e3a\u5c0f\u53f7\u521b\u4f5c\u8005\u63d0\u4f9b\u4fe1\u5fc3<\/li>\n<li><strong>\u91cf\u5316\u521b\u4f5c\u7b56\u7565<\/strong> \uff1a\u5c06\u62bd\u8c61\u7684&#8221;\u7206\u6b3e&#8221;\u6982\u5ff5\u8f6c\u5316\u4e3a\u5177\u4f53\u7684\u53ef\u6267\u884c\u6307\u6807<\/li>\n<\/ul>\n<h4>\u5173\u952e\u6d1e\u5bdf\u4e0e\u5efa\u8bae<\/h4>\n<h5>\u5bf9\u5185\u5bb9\u521b\u4f5c\u8005\u7684\u5efa\u8bae<\/h5>\n<ol>\n<li><strong>\u91cd\u70b9\u5173\u6ce8\u5185\u5bb9\u957f\u5ea6<\/strong> \uff1a\u8f83\u957f\u7684\u5185\u5bb9\u66f4\u5bb9\u6613\u6210\u4e3a\u7206\u6b3e\uff0c\u5efa\u8bae\u63a7\u5236\u5728\u5408\u7406\u8303\u56f4\u5185<\/li>\n<li><strong>\u4f18\u5316\u6807\u9898\u957f\u5ea6<\/strong> \uff1a47\u5b57\u7b26\u5de6\u53f3\u7684\u6807\u9898\u8868\u73b0\u6700\u4f73<\/li>\n<li><strong>\u4f7f\u7528\u7206\u6b3e\u8bcd\u6c47<\/strong> \uff1a\u91cd\u70b9\u4f7f\u7528&#8221;\u653b\u7565&#8221;\u3001\u201c\u5206\u4eab\u201d\u3001\u201c\u62cd\u7167\u201d\u3001&#8221;\u6559\u7a0b&#8221;\u7b49\u9ad8\u9891\u8bcd<\/li>\n<li><strong>\u6ce8\u91cd\u5b9e\u7528\u6027<\/strong> \uff1avlog\u3001\u6559\u7a0b\u3001\u65e5\u5e38\u5206\u4eab\u7b49\u5b9e\u7528\u5185\u5bb9\u66f4\u53d7\u6b22\u8fce<\/li>\n<li><strong>\u4e0d\u8981\u8fc7\u5206\u4f9d\u8d56\u7c89\u4e1d\u6570<\/strong> \uff1a\u5185\u5bb9\u8d28\u91cf\u624d\u662f\u738b\u9053<\/li>\n<\/ol>\n<h5>\u5bf9\u8fd0\u8425\u56e2\u961f\u7684\u5efa\u8bae<\/h5>\n<ol>\n<li><strong>\u5efa\u7acb\u6570\u636e\u9a71\u52a8\u7684\u521b\u4f5c\u6d41\u7a0b<\/strong> \uff1a\u7528\u6570\u636e\u5206\u6790\u6307\u5bfc\u5185\u5bb9\u7b56\u7565<\/li>\n<li><strong>\u5b9e\u65bdA\/B\u6d4b\u8bd5<\/strong> \uff1a\u6d4b\u8bd5\u4e0d\u540c\u6807\u9898\u548c\u5185\u5bb9\u683c\u5f0f\u7684\u6548\u679c<\/li>\n<li><strong>\u5173\u6ce8\u957f\u5c3e\u5185\u5bb9<\/strong> \uff1a\u4e0d\u8981\u5ffd\u89c6\u5c0f\u53f7\u521b\u4f5c\u8005\u7684\u9ad8\u8d28\u91cf\u5185\u5bb9<\/li>\n<li><strong>\u4f18\u5316\u63a8\u8350\u7b97\u6cd5<\/strong> \uff1a\u57fa\u4e8e\u5185\u5bb9\u8d28\u91cf\u800c\u975e\u7528\u6237\u57fa\u7840\u8fdb\u884c\u63a8\u8350<\/li>\n<\/ol>\n<h4>\u4e0b\u4e00\u6b65\u5c55\u671b<\/h4>\n<ol>\n<li><strong>\u591a\u6a21\u6001\u5206\u6790<\/strong> \uff1a\u7ed3\u5408\u56fe\u50cf\u6570\u636e\uff0c\u5206\u6790\u5c01\u9762\u56fe\u5bf9\u7206\u6b3e\u7684\u5f71\u54cd<\/li>\n<li><strong>\u5b9e\u65f6\u9884\u6d4b\u7cfb\u7edf<\/strong> \uff1a\u6784\u5efa\u5b9e\u65f6\u7206\u6b3e\u6f5c\u529b\u9884\u6d4bAPI<\/li>\n<li><strong>\u4e2a\u6027\u5316\u63a8\u8350<\/strong> \uff1a\u57fa\u4e8e\u7528\u6237\u753b\u50cf\u7684\u4e2a\u6027\u5316\u5185\u5bb9\u7b56\u7565<\/li>\n<li><strong>A\/B\u6d4b\u8bd5\u6846\u67b6<\/strong> \uff1a\u5efa\u7acb\u5185\u5bb9\u6548\u679c\u6d4b\u8bd5\u548c\u4f18\u5316\u4f53\u7cfb<\/li>\n<li><strong>\u60c5\u611f\u5206\u6790<\/strong> \uff1a\u5206\u6790\u5185\u5bb9\u60c5\u611f\u503e\u5411\u4e0e\u7206\u6b3e\u7684\u5173\u7cfb<\/li>\n<li><strong>\u65f6\u95f4\u5e8f\u5217\u5206\u6790<\/strong> \uff1a\u7814\u7a76\u7206\u6b3e\u5185\u5bb9\u7684\u65f6\u95f4\u89c4\u5f8b\u548c\u8d8b\u52bf<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u636e\u9a71\u52a8\u7684\u7206\u6b3e\u5bc6\u7801\uff1a\u6211\u7528Python\u548c10\u4e07\u6761\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u6570\u636e\u96c6\uff0c\u89e3\u6784\u4e86\u7206\u6b3e\u7b14\u8bb0\u7684\u7ec8\u6781\u516c\u5f0f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[51],"tags":[35,38,221,200],"class_list":["post-2067","post","type-post","status-publish","format-standard","hentry","category-51","tag-35","tag-38","tag-221","tag-200"],"_links":{"self":[{"href":"https:\/\/dianshudata.com\/story\/wp-json\/wp\/v2\/posts\/2067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dianshudata.com\/story\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dianshudata.com\/story\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dianshudata.com\/story\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dianshudata.com\/story\/wp-json\/wp\/v2\/comments?post=2067"}],"version-history":[{"count":1,"href":"https:\/\/dianshudata.com\/story\/wp-json\/wp\/v2\/posts\/2067\/revisions"}],"predecessor-version":[{"id":2068,"href":"https:\/\/dianshudata.com\/story\/wp-json\/wp\/v2\/posts\/2067\/revisions\/2068"}],"wp:attachment":[{"href":"https:\/\/dianshudata.com\/story\/wp-json\/wp\/v2\/media?parent=2067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dianshudata.com\/story\/wp-json\/wp\/v2\/categories?post=2067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dianshudata.com\/story\/wp-json\/wp\/v2\/tags?post=2067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}