0

Ich habe einen Motor App-Projekt wie folgt aus:App Engine Import Ausgabe (Python)

- project 
    - xlutils 
     * __init__.py (blank) 
     * copy.py 
     * filter.py 
    - other libs 
    - main.py (calls made from here) 

Im Code Ich versuche xlutils direkt zu importieren ('Import xlutils'), aber nicht funktioniert, die Anrufe in der Code wie ‚xlutils.copy.copy (w)‘ und auch nicht importiert Submodule wie folgt aus:

from xlutils.copy import copy 
from xlutils.filter import process,XLRDReader,XLWTWriter 

Wenn ich versuche, etwas davon importiert ich sehe nur eine leere Seite, ohne sichtbare Fehler zu tun.

Jemand weiß, wie man es richtig importiert?

+0

Was ist Ihre Frage? –

+0

Ich möchte wissen, ob es eine korrekte Möglichkeit ist, die Bibliothek 'xlutils' – kvnd

+0

zu importieren und von wo aus importieren Sie Anrufe? –

Antwort

0

In main.py

from xlutils import copy 
from xlutils.filter 

Sie werden dann die Klassen/Methoden wie nennen unter

filter.process 
filter.XLRDReader 
filter.XLWTWriter