What is the meaning of "#! Flask / bin / python" in flask?
why is this line #!flask/bin/python
added at the top of this code?
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "Hello, World!"
if __name__ == '__main__':
app.run(debug=True)
I got the following error when I removed it
from: can't read /var/mail/flask
./app.py: line 3: syntax error near unexpected token `('
./app.py: line 3: `app = Flask(__name__)'
+3
source to share
1 answer