Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)
edited by

I do not understand the meaning of the below line of code. Without it, my python3 HTTP server can't comprehend and let the program download a void .py record (rely upon the connection to the .py document) 

#! /usr/local/bin/python3

1 Answer

0 votes
by (26.4k points)

Actually it's not a python thing, it a hashbang (or shebang) line that demonstrates which translator should handle the document. 

The guidelines shift however, in its most straightforward structure, a record with the name xyz (containing that as the principal line), when run from the order line with xyz, will run it utilizing that translator, like:

/usr/local/bin/python3 xyz

Looking for python tutorial? Come and join our python training course.

Related questions

0 votes
1 answer
asked Jan 24, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Dec 16, 2020 in Python by ashely (50.2k points)

Browse Categories

...