# crap-words **Repository Path**: Sajor-Dino/crap-words ## Basic Information - **Project Name**: crap-words - **Description**: Python版本词云生成代码 - **Primary Language**: Python - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-15 - **Last Updated**: 2022-11-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # crap-words #### 介绍 Python版 词云生成 #### 安装教程 可以使用本地启动需要安装 Python3.9 环境 然后安装pip依赖 ``` pip3 install -r requirements.txt ``` 之后启动脚本即可 ``` python words.py``` 图片会生成在当前文件夹下 alice.png #### gitee流水线使用说明 可以不需要本地安装环境,使用码云的流水线也可以下载制品。 点击流水线,点击开通之后创建流水线 ![img1.png](doc/img1.png) 之后点击代码视图,贴入如下代码 ``` version: '1.0' name: download-pipeline displayName: DownloadPipeline triggers: trigger: manual push: branches: prefix: - '' stages: - name: stage-one displayName: 构建 strategy: naturally trigger: manual executor: [] steps: - step: build@python name: build_python displayName: Python 构建 pythonVersion: '3.9' commands: - pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple - '# 可以使用pip下载依赖' - pip install --user -r requirements.txt - python words.py artifacts: - name: BUILD_ARTIFACT path: - ./ caches: [] notify: [] strategy: retry: '0' ``` ![img2.png](doc/img2.png) 找到刚刚创建的流水线,点击构建分支选择master ![img3.png](doc/img3.png) 之后点击构建详情,下载制品,生成的图形是 alice.png ![img4.png](doc/img4.png)