mirror of
https://github.com/Justuser3310/ss14_chemistry_site.git
synced 2025-01-18 16:58:48 +00:00
bdc90b42d0
Добавление функции get_all() для класса reag__
12 lines
289 B
Python
12 lines
289 B
Python
class reag__:
|
|
def __init__(self, category: str = '-', comps = {}, out: int = 0):
|
|
# medicine
|
|
self.category = category
|
|
# {'инапровалин': 1, 'углерод': 1}
|
|
self.comps = comps
|
|
# 2
|
|
self.out = out
|
|
def get_all(self):
|
|
return [self.category, self.comps, self.out]
|
|
|