Example¶
Argparse¶
logging¶
myapp.py
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
mylib.py
Python | |
---|---|
1 2 3 4 5 6 |
|
如果你运行 myapp.py ,你应该在 myapp.log 中看到:
Text Only | |
---|---|
1 2 3 |
|
wheel¶
Text Only | |
---|---|
1 |
|
results:
Text Only | |
---|---|
1 2 3 4 5 |
|
importlib.metadata¶
version('wheel')
Python | |
---|---|
1 2 3 |
|
results:
Text Only | |
---|---|
1 |
|
version('numpy')¶
Python | |
---|---|
1 2 3 |
|
results:
Text Only | |
---|---|
1 |
|
list(metadata('wheel'))
Python | |
---|---|
1 2 |
|
results:
Text Only | |
---|---|
1 2 |
|
entry_points()¶
Python | |
---|---|
1 2 3 4 |
|
results:
Text Only | |
---|---|
1 |
|
distribution¶
Python | |
---|---|
1 2 3 |
|
results:
Text Only | |
---|---|
1 |
|
dist.metadata['Requires-Python']
Python | |
---|---|
1 2 3 4 |
|
results:
Text Only | |
---|---|
1 |
|
dist.metadata
Python | |
---|---|
1 2 3 |
|
results:
Text Only | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
requires('wheel')¶
Python | |
---|---|
1 2 3 |
|
results:
Text Only | |
---|---|
1 |
|
files('wheel')¶
Python | |
---|---|
1 2 3 4 |
|
results:
Text Only | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
Python | |
---|---|
1 2 3 4 5 |
|
results:
Text Only | |
---|---|
1 |
|
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
results:
Text Only | |
---|---|
1 2 3 4 5 6 |
|
http¶
Text Only | |
---|---|
1 |
|
results
Text Only | |
---|---|
1 2 |
|