Я попробую код ниже, но код.
Первый модуль
a.py
class A:
def run:
self.x=20
Второй модуль
b.py
from a import A
class B:
def run:
c= a.A()
c.run()
Print c.x
Но у меня выдает ошибку.
typeError: __init__() takes exactly 2 arguments (1 given)
Подробнее здесь: https://stackoverflow.com/questions/339 ... re-defined
Мобильная версия