Facebook
From Ungracious Cheetah, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 62
  1. from datetime import datetime
  2.  
  3. class osoba:
  4.     def __init__(self, nr_dowodu, pesel, plec, data_urodzenia, data_wydania, data_waznosci):
  5.         self.nr_dowodu = nr_dowodu
  6.         self.pesel = pesel
  7.         self.plec  =plec
  8.         self.data_urodzenia = data_urodzenia
  9.         self.data_wydania = data_wydania.datetime(now)
  10.         self.data_waznosci = data_waznosci
  11.        
  12.     def get_nr_dowodu(self):
  13.         return self.nr_dowodu
  14.    
  15.     def set_nr_dowodu(self, x):
  16.         self.nr_dowodu = x
  17.    
  18.     def get_pesel(self):
  19.         return self.pesel
  20.    
  21.     def set_pesel(self, x):
  22.         self.pesel = x
  23.        
  24.     def get_plec(self):
  25.         return self.plec
  26.    
  27.     def set_plec(self, x):
  28.         self.plec = x
  29.        
  30.     def get_data_urodzenia(self):
  31.         return self.data_urodzenia
  32.    
  33.     def set_data_urodzenia(self, x):
  34.         self.data_urodzenia = x
  35.        
  36.     def get_data_wydania(self):
  37.         return self.data_wydania
  38.    
  39.     def set_data_wydania(self, x):
  40.         self.data_wydania = x
  41.            
  42.     def get_data_waznosci(self):
  43.         return self.data_waznosci
  44.    
  45.     def set_data_waznosci(self, x):
  46.         self.data_waznosci = x
  47.        
  48. michal = osoba("", "", "", "", "", "" )