logo

Crowdly

Pourquoi le code ci-dessous peut-il être signalé comme potentiellement "dangereu...

✅ 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

More questions like this

Want instant access to all verified answers on moodle.univ-artois.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!