Update page 'Day 9 homework - Sloetjes'

xuanyi.wang
2023-04-19 05:02:13 +02:00
parent ef4a30c8ab
commit 1bad3bc64b
+1
@@ -80,6 +80,7 @@ print(login)
* Therefore, the expression `__import__('os').getlogin()` is equivalent to `os.getlogin()`, but it dynamically imports the `os` module at runtime instead of using a regular import statement.
**9. Using the functions you created above and `sys.modules`, create a module designed to be run from the command line (`python -m myscript.py`) that generates a report summarizing the module environment, and break down the percentages of bytecode modules, DSO modules (these have `file` end in `.so` or `.dll`), and normal python code.**
```
import sys
import os.path