Ich schrieb Funktionen, die applyRules (ch), Processstring (Oldstr) und benannt sind es lsystems.py und ich habePython Erstellen und Importieren von Modulen
import lsystems
def main():
inst = applyRules("F")
print(inst)
main()
und speicherte es als mainfunctioni
jedoch Wenn ich versuche, mainfunctioni auszuführen, wird 'applyRules' nicht definiert. Funktioniert es nicht, weil ich importiere lsystems?
Was soll ich tun, um meine Hauptfunktionen über lsystems zu betreiben?