From a55cb6d814df510881aa615532f2153fda239ba2 Mon Sep 17 00:00:00 2001 From: jops Date: Sun, 27 Nov 2016 12:23:09 +0100 Subject: [PATCH] Prove per aggiunta orario --- Orario.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Orario.py diff --git a/Orario.py b/Orario.py new file mode 100644 index 0000000..b47c93d --- /dev/null +++ b/Orario.py @@ -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