Prove per aggiunta orario
This commit is contained in:
parent
aa1cd182a1
commit
a55cb6d814
1 changed files with 14 additions and 0 deletions
14
Orario.py
Normal file
14
Orario.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
import datetime
|
||||
|
||||
#orario attuale
|
||||
now = datetime.datetime.now()
|
||||
|
||||
class Orario:
|
||||
pass
|
||||
|
||||
john = Orario() # Crea un record vuoto
|
||||
|
||||
# Riempie i campi del record
|
||||
john.name = 'John Doe'
|
||||
john.dept = 'computer lab'
|
||||
john.salary = 1000
|
Loading…
Reference in a new issue