有Python代码的例子在这里.我找不到以下几行的解释:
x = r_[36, 36, 19, 18, 33, 26]
y = r_[14, 10, 28, 31, 18, 26]
basename = 'arc'
Run Code Online (Sandbox Code Playgroud)
请告诉我它是如何工作的.或参考任何信息页面.谢谢.
r_是numpy magic:http://docs.scipy.org/doc/numpy/reference/generated/numpy.r_.html
basename 稍后用于生成文件名:
...
# basename is actually set to "circle" ("arc" is commented out) in that example.
# this saves the figure to "circle_residu2.png" or "circle_residu1.png"
p.savefig('%s_residu%d.png' % (basename, 2 if residu2 else 1))
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
312 次 |
| 最近记录: |