есть 3 файла: main.py / cf.py / fn.py но при запуске main.py вылезает ошибка:
ImportError: cannot import name 'hey' from 'fn'
main.py:
from fn import hey
from cf import cmds
def cherk(vc):
if vc in question.cmds('hey'):
sic(x)
cf.py
from fn import *
class question:
cmds = {
('hey','hello'): hey
}
fn.py
class answer:
def hey(self, vc):
self.hey_rand = ['hello' , 'hello my friend']
x = random.choice(hey_rand)
def __init__(self, arg):
super(vc, self).__init__()
self.arg = arg