✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Pourquoi le code ci-dessous peut-il être signalé comme potentiellement "dangereux" par pylint
, même si pytest le valide ?
def run_command(cmd): import os os.system(cmd)
Proposez une correction pour empêcher cela.
Indice à voir ici : https://docs.python.org/3/library/subprocess.html
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!