• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
6075wyf
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 ··· 23 下一页

2025年1月26日

20250126
摘要: 学习Hadoop集群搭建。 学习MapReduce编程模型。 import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.Text; import 阅读全文
posted @ 2025-01-26 20:50 雨愈 阅读(11) 评论(0) 推荐(0)
 
 

2025年1月25日

20250125
摘要: 实践生成完整的热词报告。 包含热词、解释、引用链接等。 def save_full_report(hot_words, explanations, references, file_path): doc = Document() doc.add_heading("信息领域热词报告", level=1 阅读全文
posted @ 2025-01-25 20:49 雨愈 阅读(16) 评论(0) 推荐(0)
 
 

2025年1月24日

20250124
摘要: 学习使用Python的python-docx库生成Word文档。 理解文档结构和样式设置。 from docx import Document def create_word_report(hot_words, explanations, file_path): doc = Document() d 阅读全文
posted @ 2025-01-24 15:56 雨愈 阅读(13) 评论(0) 推荐(0)
 
 

2025年1月23日

20250123
摘要: 实践生成热词词云。 绘制热词关系图。 import networkx as nx def draw_word_relationship(words): G = nx.Graph() for word, freq in words.items(): G.add_node(word) G.add_edg 阅读全文
posted @ 2025-01-23 23:56 雨愈 阅读(11) 评论(0) 推荐(0)
 
 

2025年1月22日

20250122
摘要: 学习使用Python的wordcloud库生成词云。 学习使用networkx库绘制关系图。 from wordcloud import WordCloud import matplotlib.pyplot as plt def generate_word_cloud(words): wordclo 阅读全文
posted @ 2025-01-22 20:50 雨愈 阅读(12) 评论(0) 推荐(0)
 
 

2025年1月21日

20250121
摘要: 实践为热词生成引用链接。 存储引用链接到本地文件。 def save_references(hot_words, file_path): references = {} for word in hot_words: references[word] = search_word_references( 阅读全文
posted @ 2025-01-21 23:56 雨愈 阅读(11) 评论(0) 推荐(0)
 
 

2025年1月20日

20250120
摘要: 学习使用搜索引擎API(如百度搜索)查找热词引用。 理解如何从搜索结果中提取链接。 def search_word_references(word): url = f"https://www.baidu.com/s?wd={word}" response = requests.get(url) so 阅读全文
posted @ 2025-01-20 23:56 雨愈 阅读(12) 评论(0) 推荐(0)
 
 

2025年1月19日

20250119
摘要: 实践为热词生成解释。 存储解释到本地文件。 def save_explanations(hot_words, file_path): explanations = {} for word in hot_words: explanations[word] = get_word_explanation( 阅读全文
posted @ 2025-01-19 20:49 雨愈 阅读(10) 评论(0) 推荐(0)
 
 

2025年1月18日

20250118
摘要: 学习使用Python调用API(如百度百科)获取热词解释。 理解API请求和响应。 import requests def get_word_explanation(word): url = f"https://baike.baidu.com/item/{word}" response = requ 阅读全文
posted @ 2025-01-18 20:49 雨愈 阅读(9) 评论(0) 推荐(0)
 
 

2025年1月17日

20250117
摘要: 实践对热词进行自动分类。 存储分类结果。 def classify_and_save(hot_words, rules, file_path): classified_words = {category: [] for category in rules.keys()} for word in ho 阅读全文
posted @ 2025-01-17 23:56 雨愈 阅读(14) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 ··· 23 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3