Loading

摘要: Panda模块读取txt文本文件 使用pandas.read_csv函数 1. 如果txt文本中有表头(标题行) import pandas as pd data = pd.read_csv('data.txt') print(data) 2. 如果txt文本中无表头 import pandas a 阅读全文
posted @ 2021-04-17 11:29 _yhwu 阅读(8363) 评论(0) 推荐(0) 编辑
摘要: 参考文献报错 提示:Something's wrong--perhaps a missing \item. \end{thebibliography} 原因是.tex文档中未曾引用reference中的文献 解决方法 1.到项目文档下找到.bbl文件 2.删除该.bbl文件 3.加入任意一个引用\c 阅读全文
posted @ 2021-04-13 09:29 _yhwu 阅读(3364) 评论(0) 推荐(0) 编辑
摘要: 操作步骤 1. 打开浏览器IE的Internet选项→高级 2. 找到安全模块 3. 勾上四个使用: 使用SSL 3.0 使用TLS 1.0 使用TLS 1.1 使用TLS 1.2 4. 点击确定就解决了。 (注:设置后需重启电脑) 阅读全文
posted @ 2021-04-12 16:11 _yhwu 阅读(1586) 评论(0) 推荐(0) 编辑
摘要: TensorFlow2.1 环境配置 1. 安装Anaconda 官网:https://anaconda.com 清华镜像:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 选择Anaconda3安装包文件下载 双击安装包,一路next(下 阅读全文
posted @ 2021-04-12 16:03 _yhwu 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 有手就行,如下所示 1. 保存指定变量到mat文件中 a = [6,6,6] b = [1,2,3] % save a and b to the file 'ab.mat' save('ab.mat', 'a', 'b') 2. 保存所有已加载的变量到mat文件中 save a 简单粗暴,save就 阅读全文
posted @ 2021-04-08 15:52 _yhwu 阅读(4567) 评论(0) 推荐(0) 编辑
摘要: Tensorflow和Keras版本对应关系 二者对应版本号如表所示(Keras新版本对Tensorflow老版本不兼容,需注意安装版本号) FrameworkEnv name (--env parameter)DescriptionDocker ImagePackages and Nvidia S 阅读全文
posted @ 2021-04-05 21:15 _yhwu 阅读(52187) 评论(0) 推荐(2) 编辑
摘要: pip 安装报错 “Cannot open pip-script.py” 1.进入命令行界面 2.输入pip包的安装指令 easy_install pip 3.输出 “Processing dependencies for pipFinished processing dependencies fo 阅读全文
posted @ 2021-04-04 09:33 _yhwu 阅读(465) 评论(0) 推荐(0) 编辑
摘要: PIL Pillow是PIL的一个派生分支,现已经发展成为比PIL本身更具活力的图像处理库。pillow基本已经取代了PIL,但是在Python中引用依然是PIL,将其封装成python的库(pip即可安装),且支持python2和python3。 PIL安装方法 1.进入控制台 2.输入pip安装 阅读全文
posted @ 2021-04-04 09:27 _yhwu 阅读(464) 评论(0) 推荐(0) 编辑
摘要: Tensorflow 中的格式报错 “ TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64 ” 错误代码 n = x/4 temp 阅读全文
posted @ 2021-03-31 11:09 _yhwu 阅读(866) 评论(0) 推荐(0) 编辑
摘要: Python 3 版本中的缩进问题(TabError) 在运行程序报错时,如果遇到 TabError, 那么需要检查相应的代码行中是否存在缩进符Tab和空格混用的情况。 当缩进全部替换成 Tab 之后即可解决此问题。 注:缩进需统一,全 Tab 缩进,或者全 空格 缩进。 阅读全文
posted @ 2021-03-31 09:47 _yhwu 阅读(71) 评论(0) 推荐(0) 编辑