随笔分类 -  python

摘要:numpy中的axis怎么理解:数组的维数,比如4*5数组,行为axis=1,列为axis=0 eg: a = np.arange(20).reshape(4,5)print "a:"print aprint "maximum element in each row of a: " + str(a. 阅读全文
posted @ 2017-01-25 11:41 开怀 阅读(1028) 评论(0) 推荐(0)
摘要:1、 输入:>>>print"hha"SyntaxError: invalid syntax 原因:要写空格 2、>>> print "hello"SyntaxError: Missing parentheses in call to 'print' 原因:Mac安装俩个Python版本,2和3,p 阅读全文
posted @ 2017-01-23 21:11 开怀 阅读(414) 评论(0) 推荐(0)