This text is italic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import argparse | |
import sys | |
DEFAULT_PATH = "." | |
def get_tree(p: Path, root_path: Path, f:bool=False) -> None: | |
"""Get the tree structure of a directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Machine { | |
constructor(name, machiningTime) { | |
this.name = name | |
this.machiningTime = machiningTime | |
this.isWorking = true | |
} | |
repair(time) { | |
console.log(`${this.name} est en panne ! La réparation prendra ${time} minutes.`) | |
this.machiningTime += time |