摘要:
# NumPy之 数组创建import numpy as npdef print_array(a): print(a) print('array dimensions is %d' % (a.ndim)) print('array shape is'... 阅读全文
posted @ 2018-03-23 15:17
wjc920
阅读(141)
评论(0)
推荐(0)
摘要:
# 过滤器(filter),filter有两个形参,第一个参数返回一个布尔值,# 如果返回True则当前迭代值会被选中,否则不选a = [1, 2, -3, -4, 5, 0.3, -5, 0]print('element in a list:')print(a)#选... 阅读全文
posted @ 2018-03-23 15:16
wjc920
阅读(163)
评论(0)
推荐(0)
浙公网安备 33010602011771号