Skip to content

Commit ce910b4

Browse files
committed
🎉 提交原书代码
1 parent f0a6e2e commit ce910b4

File tree

490 files changed

+47920
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

490 files changed

+47920
-0
lines changed

assets/01-data-model/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# The Python Data Model
2+
3+
Sample code for Chapter 1 of _Fluent Python 2e_ by Luciano Ramalho (O'Reilly, 2020)
4+
5+
## Running the tests
6+
7+
### Doctests
8+
9+
Use Python's standard ``doctest`` module to check stand-alone doctest file:
10+
11+
$ python3 -m doctest frenchdeck.doctest -v
12+
13+
And to check doctests embedded in a module:
14+
15+
$ python3 -m doctest vector2d.py -v
16+
17+
### Jupyter Notebook
18+
19+
Install ``pytest`` and the ``nbval`` plugin:
20+
21+
$ pip install pytest nbval
22+
23+
Run:
24+
25+
$ pytest --nbval

0 commit comments

Comments
 (0)