
知识点
wind_听雨
户外的昏黄已然凝聚成夜的乌黑
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python的jieba词库的简单使用
import jieba str="自从一股逆风袭来,我已能抗御八面来风,驾舟而行" word = jieba.lcut(str) print(word) print(jieba.lcut(str,cut_all=True)) print(jieba.lcut_for_search(str)) words = " ".join(word) print(words) import jieba str="我们一起盘他" jieba.add_word("盘他") print(jieba.lcut(str))原创 2020-11-20 21:23:33 · 1010 阅读 · 0 评论 -
Python通过cmd安装第三方库
Python通过cmd安装第三方库 1.直接安装命令:pip inatall 库名(对于同时安装python2和python3环境的系统,建议采用pip3命令<在pip后面加个"3"就可以了>专门为python3版本安装第三方库。) 2.利用国内镜像安装命令: pip install -i 镜像站网址 库名 国内常用镜像站网址: 1> 清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/ 2> 阿里云:http://mirrors.aliy原创 2020-11-06 22:47:23 · 4345 阅读 · 1 评论 -
python的random库的简单使用(生成随机数)
random库原创 2020-11-14 13:26:54 · 6496 阅读 · 0 评论 -
python的turtle库的简单使用
python的turtle库的简单使用 Python的turtle库是一个直观有趣的图形绘制函数库,是python的标准库之一。 一、绘图坐标体系 turtle库绘制图形的基本框架:通过一个小海龟在坐标系中的爬行轨迹绘制图形,小海龟的初始位置在画布中央。 turtle.setup(width,height,startx,starty) 1.width,height:为主窗体的宽和高 2.startx,starty:为窗口距离左侧与屏幕左侧像素距离和窗口顶部与屏幕顶部的像素距离。 import turtle原创 2020-11-08 13:31:31 · 1337 阅读 · 2 评论