|
Size: 465
Comment:
|
Size: 452
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 4: | Line 4: |
| ''' 含有章节索引的中文 文章模板 ''' |
|
| Line 8: | Line 5: |
| ::-- flyaflya [[[DateTime(2005-08-07T02:30:17Z)]]] | ::-- flyaflya [[[DateTime(2005-08-07T02:30:26Z)]]] |
| Line 11: | Line 8: |
| ''简述'' == 章标题1 == |
== 简介 == 提供对序列的快速操作 == 例子 == >>> import Numeric as N |
| Line 14: | Line 13: |
| === 小节标题1 === {{{ #!python Python code }}} |
>>> a = [[0,0,1,1,0],[1,1,0,0,1],[0,0,1,0,1]] |
| Line 20: | Line 15: |
| ==== 次节标题1 ==== xxx |
>>> N.where(a, 100,99) |
| Line 23: | Line 17: |
| == 章标题2 == === 小节标题2 === {{{ 其它 代码引用 }}} ==== 次节标题2 ==== yyy |
array([[ 99, 99, 100, 100, 99], [100, 100, 99, 99, 100], [ 99, 99, 100, 99, 100]]) |
::-- flyaflya [DateTime(2005-08-07T02:30:26Z)] TableOfContents
1. Numerical Python
1.1. 简介
提供对序列的快速操作
1.2. 例子
>>> import Numeric as N
>>> a = 0,0,1,1,0],[1,1,0,0,1],[0,0,1,0,1
>>> N.where(a, 100,99)
array([[ 99, 99, 100, 100, 99],
- [100, 100, 99, 99, 100], [ 99, 99, 100, 99, 100]])
