
Python
文章平均质量分 62
Evannnnnnnnnnn
wo jiu shi hun ge 5 ji fen yong lai xia zai zi liao
展开
-
学习随笔-ValueError: The truth value of an array with more than one element is ambiguous
问题:我的代码是想判断两个nparray是否完全相等,if prediction[i] == Y_test[i]:运行时报的错误为:ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()原因:假设存在两个nparray:a = np.array([...原创 2018-04-09 16:33:34 · 211831 阅读 · 8 评论 -
Python打印所有元素
import numpy as npnp.set_printoptions(threshold=np.inf)原创 2018-05-24 11:14:52 · 6750 阅读 · 0 评论 -
Windows下Python 2.×,Python 3.×共存时,pip和pip3的使用问题
前提 未使用anaconda管理python版本 分别装了Python2.7以及Python3.6 已经分别添加 D:\python2.7, D:\python2.7\Scripts , D:\python3.6 , D:\python3.6\Scripts 到path环境变量 Python2和Python3共存问题 进入D:\python3.6目录下,将python.ex...原创 2018-08-13 15:57:58 · 1073 阅读 · 0 评论