Cac/Orario.py

15 lines
232 B
Python
Raw Normal View History

2016-11-27 12:23:09 +01:00
import datetime
#orario attuale
now = datetime.datetime.now()
class Orario:
pass
john = Orario() # Crea un record vuoto
# Riempie i campi del record
2016-11-27 21:57:02 +01:00
john.name = 'John Doe prova'
2016-11-27 12:23:09 +01:00
john.dept = 'computer lab'
john.salary = 1000