1 Star 0 Fork 0

王大殿 / project_30914010

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Manifest_der_Kommunistischen_Partei

介绍

共产党宣言 用xlwings统计共产党宣言中各个术语出现的位置。

excel表格内容

  1. raw工作表,存放共产党宣言的原文与对应的翻译,A列为翻译,B列为原文。
  2. terminology工作表,存放需要统计的术语。
  3. res工作表,存放统计结果。

脚本结构

  1. 函数定义,定义了一个用于去除术语中出现的中文的函数——remove_non_german_words。
  2. 处理术语表,术语表中的术语含有中文,标点符号,不利于后面的查找与统计,故需要删除每个单元格中的无关字符。
  3. 创建键值对,将宣言的原文与翻译一一对应,做成键值对。将键值对结果存储到translation_dict,以备后续使用。
  4. 遍历术语表,判断该术语是否在translation_dict的键中,如果是则将该术语以及该键值对存入res工作表。
  5. 保存并关闭表格
MIT License Copyright (c) 2023 王大殿 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

内容含有违规信息 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/wang_da_dian/manifest_der_kommunistischen_partei.git
git@gitee.com:wang_da_dian/manifest_der_kommunistischen_partei.git
wang_da_dian
manifest_der_kommunistischen_partei
project_30914010
master

搜索帮助