dupontL3
c'est quoi ?
馃シ馃徏Mon niveau en python !
- import time
- def timer(f):
- def wrapper(*args, **kwargs):
- start = time.time()
- result = f(*args, **kwargs)
- end = time.time()
- print(f"Temps : {end - start:.4f}s")
- return result
- return wrapper
- @timer
- def slow():
- time.sleep(1)
- slow()
#Temps : 1.0006s
@debug def add(a, b): ... ↓ 茅quivaut 脿 ↓ def add(a, b): ... add = debug(add)
@debug def add(a, b): ... ↓ 茅quivaut 脿 ↓ def add(a, b): ... add = debug(add)@debugdef add(a, b): ... ↓ 茅quivaut 脿 ↓ def add(a, b): ... add = debug(add)
DS : code correction
Architecture
- Back-end (API): The API lives in the
API-QCMrepository. It serves the QCM endpoints (questions, categories, submit). By default the frontend expects the API athttp://localhost:3000.
https://github.com/dupontdenis/API-QCM.git
- Front-end : Static files in this repository (
index.html,js/,css/) implement the UI that calls the API.
Inscription 脿 :
Articles (Atom)