随笔分类 - python
Python的学习记录
摘要:镜像源 清华源:https://pypi.tuna.tsinghua.edu.cn/simple 豆瓣源:https://pypi.doubanio.com/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.m
阅读全文
摘要:pip install scikit-learn # from sklearn.decomposition import PCA pip install pymysql # import pymysql pip install py2neo # import py2neo as neo pip in
阅读全文
摘要:两种方式以及效果: 方式一,使用PIL.Image.blend方式: from PIL import Image, ImageDraw im = Image.open('d:/tmp/58.249.0.220_01_20200604141800866_TIMING.jpg', 'r') im2 =
阅读全文
摘要:1、为什么python被称为胶水语言?他是新一代的系统脚本参考博客:https://www.cnblogs.com/ningskyer/articles/5264172.html 2、python百度百科介绍:最初被设计用于编写自动化脚本(shell)可以用于web和internet开发、科学计算和
阅读全文
摘要:安装: 1、先安装tensorflow-gpu,需要查看对应的版本,通过pycharm运行程序时会报错,提示需要安装CUDA,且会指明需要版本号 >> pip install tensorflow-gpu 2、下载安装CUDA软件,选择相应的版本及操作系统,下载并安装; CUDA下载地址: http
阅读全文
摘要:如果使用import导入的新模块没有安装,则会报错,下面是使用Anaconda管理进行安装的过程:1、打开Anaconda工具,如图: 2、可通过输入 查看已安装的模块 3、如果需要安装如 numpy,在命令行中输入 会搜索出numpy的各种版本(windows、linux等) 搜索结果如图: 4、
阅读全文