![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
柳德米拉帕夫利琴科
Stay hungry;stay foolish!
展开
-
Python函数--numpy.fromfunction( )
np.fromfunction( ) 库numpy中的函数fromfunction(function,shape,dtype ):(1)function def function(x,y): 函数内部 (x,y)分别是以左上角为原点的坐标,x为行坐标,y为列坐标,表示第x行y列。 (2)shape:(a,b)原创 2017-09-16 21:08:12 · 7529 阅读 · 4 评论 -
Python学习记录1--字典(dictionary)
1.创建字典(1) 方法1>>> a = {'x': 1, 'y': '3'}>>> a{'x': 1, 'y': '3'}(2) 方法2: dict() 函数用于创建一个字典,并返回一个字典。>>> a=dict({'x':1,'y':2})>>> a{'x': 1, 'y': 2}(3) 方...原创 2019-01-07 09:31:32 · 133 阅读 · 0 评论