Guest User

Untitled

a guest
Feb 6th, 2023
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---------------------
  2. # plik fukcjepomocnicze.py
  3.  
  4. def alpha_condition(instance):
  5.     if instance.alpha = 5:
  6.         instance.beta = instance.alpha + instance.gamma
  7.  
  8. ---------------------
  9. # plik main.py
  10. from . import fukcjepomocnicze
  11.  
  12. Klasa:
  13.     pomocnicze = fukcjepomocnicze
  14.     ...
  15.     def alpha_condition(self):
  16.         return self.pomocnicze.alpha_condition(instance=self)
  17.  
  18.  
Add Comment
Please, Sign In to add comment