8
niezwiązana metoda f () musi być wywołana z instancją fibo_ jako pierwszym argumentem (zamiast tego otrzymano instancję classobj)
W Pythonie próbuję uruchomić metodę w klasie i pojawia się błąd: Traceback (most recent call last): File "C:\Users\domenico\Desktop\py\main.py", line 8, in <module> fibo.f() TypeError: unbound method f() must be called with fibo instance as first argument (got nothing instead) Kod: (swineflu.py) class fibo: a=0 b=0 def f(self,a=0): print fibo.b+a b=a; …