
Python
hu炸炸
这个作者很懒,什么都没留下…
展开
-
Python 安装openGL教程
Python 安装openGL教程1、本地安装(32位系统 or 64位系统)1).登录网站:https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopengl2).下载对应版本的OpenGL如图所示:是3.1.5版本的OpenGL,cp37m表示对应python 3.7版本,amd64表示对应64位系统.。选择适合自己的版本,然后下载到Anaconda安装文件见下(随便一个文件见不知道行不行,我没试过)如果你是3.7这里提供了 百度网盘链接:https:原创 2020-10-07 17:30:47 · 9469 阅读 · 2 评论 -
python 中文文本分析
中文文本分析Mac 安装pip 和 jiebacurl https://bootstrap.pypa.io/get-pip.py | python3你可以接着输入 pip --version看到pip的版本pip install jieba文本分析import jiebaimport jieba.posseg as psg # 词性标注入口s = "我爱北京天安门"for x in jieba.cut(s): print(x)print(jieba.lcut原创 2020-10-05 16:47:40 · 3340 阅读 · 0 评论 -
python 函数基础以及lambda使用
python函数round(x,[,n]) //这样表示n可以被省略def Name(): return XXXXX函数基础def babble(words,times=1): # with default arguments return ((words+" ")*times)print(babble("kldjkd",2))print(babble("kldjkd"))print(babble(times=2,words="myson")) #名称传递# for i原创 2020-09-23 15:56:28 · 436 阅读 · 0 评论 -
Python 字典 dict
字典基础s=[("zz",1),("zz2",2)]dic=dict(s);print(dict(s)) #转字典print(dict(s)["zz"])dicAreas={}print(type(dicAreas))dicAreas["dd"]="dddd"dicAreas["dd2"]="dddd2"dicAreas["dd2"]="23333" #更新print(dicAreas)del dicAreas['dd']print(dicAreas)print(dicAr原创 2020-09-23 14:29:07 · 394 阅读 · 0 评论