For code direct run No problem , Don't complain , but debug Report errors :SyntaxError: Missing parentheses in call to ‘exec’
By looking at the solution , It may be that naming the folder as the name of the built-in function will lead to package conflicts , So think about whether there is a problem with the naming of the package , Correct the folder name to test .
Change the folder name to my_code Problem solving .