Question for loading modules from Python.

Asked 1 years ago, Updated 1 years ago, 93 views

Place the Python path in the module position.
After locating the module location in cmd, run Python and import the module (mod1.py) I did import mod1 but it doesn't work. Why not?

python module

2022-09-22 19:25

1 Answers

Judging from the error message, mod1.py The content of the code is

Python 3.7.2 (tags/v3.7.2:9a3ffc0492...) [MSC v.1916...

It starts like this. The statement at the start of the interpreter is not a Python code. It's an error that comes out because I just put it on and made mod1.py.


2022-09-22 19:25

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.