如果文件包含#,会发生什么!并且口译员也从外部提供?

Please help me in understanding about #!. What happens if a file already having mention of interpreter through #! is invoked through external interpreter. For ex. let suppose there is a file foo.py having #!/usr/bin/env python2. What happens if on terminal python3 foo.py is used?

评论