GURUH: 612-18
TALABA: Bozorov A
10-amaliy ish
Mavzu: Sun’iy neyron tarmoqlari. Sodda neyron tarmoqlarini qurish.
# Class
class son:
x=5
s1=son
# print(s1.x)
class ishchi:
def __init__(self, ismi, yoshi):
self.ismi=ismi
self.yoshi=yoshi
def tanish(self):
print("Mening ismim "+ self.ismi)
p1=ishchi("Abduraxmon", 22)
# print(p1.ismi, p1.yoshi)
p1.tanish()
Do'stlaringiz bilan baham: |