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:
@@ -4,7 +4,7 @@
|
||||
|
||||
In [1]:
|
||||
|
||||
```
|
||||
```py
|
||||
import pprint
|
||||
|
||||
```
|
||||
@@ -13,7 +13,7 @@ import pprint
|
||||
|
||||
In [2]:
|
||||
|
||||
```
|
||||
```py
|
||||
data = (
|
||||
"this is a string",
|
||||
[1, 2, 3, 4],
|
||||
@@ -27,12 +27,12 @@ data = (
|
||||
|
||||
In [3]:
|
||||
|
||||
```
|
||||
```py
|
||||
print data
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
```py
|
||||
('this is a string', [1, 2, 3, 4], ('more tuples', 1.0, 2.3, 4.5), 'this is yet another string')
|
||||
|
||||
```
|
||||
@@ -41,12 +41,12 @@ print data
|
||||
|
||||
In [4]:
|
||||
|
||||
```
|
||||
```py
|
||||
pprint.pprint(data)
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
```py
|
||||
('this is a string',
|
||||
[1, 2, 3, 4],
|
||||
('more tuples', 1.0, 2.3, 4.5),
|
||||
|
||||
Reference in New Issue
Block a user