mirror of
https://github.com/apachecn/ailearning.git
synced 2026-04-29 21:13:37 +08:00
2020-10-19 21:08:55
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
In [1]:
|
||||
|
||||
```
|
||||
```py
|
||||
%%file fib_orig.pyx
|
||||
def fib(n):
|
||||
a,b = 1,1
|
||||
@@ -12,14 +12,14 @@ def fib(n):
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
```py
|
||||
Writing fib_orig.pyx
|
||||
|
||||
```
|
||||
|
||||
In [2]:
|
||||
|
||||
```
|
||||
```py
|
||||
!cython -a fib_orig.pyx
|
||||
|
||||
```
|
||||
@@ -28,14 +28,14 @@ In [2]:
|
||||
|
||||
In [3]:
|
||||
|
||||
```
|
||||
```py
|
||||
!start fib_orig.html
|
||||
|
||||
```
|
||||
|
||||
`linux` 下使用:
|
||||
|
||||
```
|
||||
```py
|
||||
open fib_orig.html
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user