add tp3
This commit is contained in:
1 parent
bfac007c85
commit
8da52aabc8
3 files changed
+41
No files matched your search
@@ -0,0 +1,23 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
Created on Wed Oct 18 10:44:00 2017
|
||||||
|
|
||||||
|
@author: vmahout
|
||||||
|
"""
|
||||||
|
|
||||||
|
import datetime
|
||||||
|
|
||||||
|
def Heure() :
|
||||||
|
date = datetime.datetime.now()
|
||||||
|
date.hour
|
||||||
|
return (date.hour)
|
||||||
|
|
||||||
|
def Minute() :
|
||||||
|
date = datetime.datetime.now()
|
||||||
|
return (date.minute)
|
||||||
|
|
||||||
|
def Seconde() :
|
||||||
|
date = datetime.datetime.now()
|
||||||
|
return (date.second)
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
from Donne_Heure import Heure, Minute, Seconde
|
||||||
|
|
||||||
|
Heu = Heure()
|
||||||
|
Min = Minute()
|
||||||
|
Sec = Seconde()
|
||||||
|
|
||||||
|
print(Heu, " :", Min, " :", Sec)
|
||||||
|
|
||||||
|
def AfficheValeur(a) :
|
||||||
|
print(a)
|
||||||
|
|
||||||
|
def BigDouble(a) :
|
||||||
|
x = 2.1 * a
|
||||||
|
print(x)
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import FirstModule
|
||||||
|
|
||||||
|
a = input(int("a :"))
|
||||||
|
print(BigDouble(a))
|
||||||
Reference in new issue
Block a user