파이썬에서 CS 클래스의 모의 시험 문제를 이해하는 데 도움이 필요합니다. 이 문제는 파이썬 네임 스페이스를 다룬다. 질문은 다음과 같습니다.Python에서 네임 스페이스 이해
Which of the following are true in Python?
i. Every function has access to the names in the builtin namespace.
ii. Every invocation of a function creates a new namespace nested within the calling function’s namespace.
iii. Invoking function G from function F adds the name G to F’s namespace
iv. The namespace of an imported module is always added to the builtin namespace.
a. i only
b. ii and iii only
c. i and iv only (answer)
d. i, ii and iii only
e. None of the above
누군가가 두 번째 및 세 번째 사례가 잘못된 이유를 설명해 줄 수 있습니까? 또는 네임 스페이스를 설명하는 리소스를 참조하십시오. 고맙습니다.