separate.py
class foo(): print 'a bunch of time consuming work' class tryme(): print 'try me'*
main.py
from separate import * foo()
It however printed both:
a bunch of time consuming work try me
Aucun commentaire:
Enregistrer un commentaire