Erstellen Sie eine Python -Datei und importieren Sie sie in einer anderen Datei als Bibliothek

# Script file: my_script.py

import my_module

my_module.hello_printer()
print("Creator:", my_module.name)
Scary Sable